Form w PHP - Problem z wyslaniem danych na mail
: pt sty 02, 2004 11:42 pm
Mam spory problem, mecze sie z nim juz od 2 dni. Zrobilem na stronie form ktory ma za zadanie ulatwic klientom kontakt ze mna. Musza oni wpisac nazwe swojej firmy, nazwisko, mail itp. Problem polega na tym ze niby wszystko dziala oki, ale nie dostaje zadnych danych na mail.
Korzystam z serwera na strefa.pl a skrypt wysylania formularza zassalem ze stronki scrypty.com (bardzo mi on odpowiada wiec nie chcial bym z niego rezygnowac)
Kod formularza:
Plik email.php3:
[php]<?php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela | aka: Yokhannan">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<center>
<table width="100%" bgcolor="black" cellspacing=0 cellpadding=0 valign=center border=0><tr><td><center><font face="Verdana" size="2" color="white"><B>Contact Us!</B></font></td></tr></table>
<?
/* Let's set a few Variables to handle all the dirty work! */
$site_name = "oiselcreation.net";
$site_email = "Your Email address"; # (ie: [email protected] )
# DO NOT EDIT ANYTHING BELOW THIS LINE #
# DO NOT EDIT ANYTHING BELOW THIS LINE #
# DO NOT EDIT ANYTHING BELOW THIS LINE #
/* This will handle the variables passed from the contact.php3 file */
PRINT "<CENTER>";
PRINT "Witamy, $name.";
PRINT "<BR><BR>";
PRINT "Dziękujemy za wysłanie do nas zgłoszenia.<BR><BR>";
PRINT "</CENTER>";
?>
<?
mail("$email", "Thank You From $site_name!", "$namen
Thank you $name for submitting your question/comments!
We will handle your submission in the order of arrival.
If needed, we will email you back. If you do not receive
a reply within 48 hours, please email $site_email!");
mail("$site_email",
"$site_name Contact Form",
"Submitted By: $name
Email: $email
URL: $URL
Business: $BusinessName
Location: $BusinessLocation
Comments:
$Comments
$HTTP_USER_AGENT");
?>
<p><br>
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<table width="80%" cellspacing=0 cellpadding=0 valign=center border=0><tr><td><center><font face="Verdana" size="1">This Page Uses Scripts Created By: <a href="http://www.4cm.com/cgi-bin/tracker/jump.cgi?ID=7" target="_blank" OnmouseOver="window.status=' Click To Visit This Site! '; return true" OnMouseOut="window.status=' '; return true">www.4cm.com</a>.</font></td></tr></table>
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
</center>
</BODY>
</HTML>
?>[/php]
Jesli ktokolwiek wie jak rozwiazac ten problem prosze o pomoc.[/code]
Korzystam z serwera na strefa.pl a skrypt wysylania formularza zassalem ze stronki scrypty.com (bardzo mi on odpowiada wiec nie chcial bym z niego rezygnowac)
Kod formularza:
Kod: Zaznacz cały
<table cellPadding=0 cellSpacing=1 border=0 width=450 class=form>
<tbody>
<tr>
<td>
<form action="email.php3" method="post"></td>
</tr>
<tr bgColor=#EFEEE9>
<td width=200><a class=form>*Nazwa firmy:</td>
<td><font face="verdana,arial" size="1"><input name="BusinessName" size=28 value=""></td>
</tr>
<tr bgColor=#EFEEE9>
<td width=300><a class=form>*Twoja godność:</td>
<td><font face="verdana,arial" size="1"><input name="name" size=28 value=""></td>
</tr>
<tr bgColor=#EFEEE9>
<td><a class=form>*Adres e-mail:</td>
<td><font face="verdana,arial" size="1"><input name="email" size=28 value=""></td>
</tr>
<tr>
<td><a class=form>Tel. kontaktowy:</td>
<td><font face="verdana,arial" size="1"><input name="PhoneNr" size=28 value=""></td>
</tr>
<tr>
<td><a class=form>Adres biura:</td>
<td><font face="verdana,arial" size="1"><input name="PhoneNr" size=28 value=""></td>
</tr>
<tr bgColor=#EFEEE9>
<td valign=top><a class=form>*W sprawie:</td>
<td><textarea name="Comments" cols=40 rows=8 wrap=soft></textarea></td>
</tr>
<tr>
<td width=80%> </td>
<td><div align=right><font face="verdana,arial" size="1"><input type="submit" value="Wyślij"></div></td>
</tr>
<tr>
<td><a class=wymagane>* - wymagane</a></td>
<td> </td>
</tr>
</td>
</tr></tbody></table>[php]<?php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela | aka: Yokhannan">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<center>
<table width="100%" bgcolor="black" cellspacing=0 cellpadding=0 valign=center border=0><tr><td><center><font face="Verdana" size="2" color="white"><B>Contact Us!</B></font></td></tr></table>
<?
/* Let's set a few Variables to handle all the dirty work! */
$site_name = "oiselcreation.net";
$site_email = "Your Email address"; # (ie: [email protected] )
# DO NOT EDIT ANYTHING BELOW THIS LINE #
# DO NOT EDIT ANYTHING BELOW THIS LINE #
# DO NOT EDIT ANYTHING BELOW THIS LINE #
/* This will handle the variables passed from the contact.php3 file */
PRINT "<CENTER>";
PRINT "Witamy, $name.";
PRINT "<BR><BR>";
PRINT "Dziękujemy za wysłanie do nas zgłoszenia.<BR><BR>";
PRINT "</CENTER>";
?>
<?
mail("$email", "Thank You From $site_name!", "$namen
Thank you $name for submitting your question/comments!
We will handle your submission in the order of arrival.
If needed, we will email you back. If you do not receive
a reply within 48 hours, please email $site_email!");
mail("$site_email",
"$site_name Contact Form",
"Submitted By: $name
Email: $email
URL: $URL
Business: $BusinessName
Location: $BusinessLocation
Comments:
$Comments
$HTTP_USER_AGENT");
?>
<p><br>
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<table width="80%" cellspacing=0 cellpadding=0 valign=center border=0><tr><td><center><font face="Verdana" size="1">This Page Uses Scripts Created By: <a href="http://www.4cm.com/cgi-bin/tracker/jump.cgi?ID=7" target="_blank" OnmouseOver="window.status=' Click To Visit This Site! '; return true" OnMouseOut="window.status=' '; return true">www.4cm.com</a>.</font></td></tr></table>
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
</center>
</BODY>
</HTML>
?>[/php]
Jesli ktokolwiek wie jak rozwiazac ten problem prosze o pomoc.[/code]