Hi All,
I'm creating a form wich sends the data to an email and I can't seem to get the script to work. Well, it work for a while, and then it suddenly stopped working. I'm slowly being conviced that the problem lies with my hosting service and not with the code.... Would that be possible?
Anywho, here's the code if anyone has any ideas. Thanks in advance,
Ron
HTML Code:
<BODY>
<FORM METHOD="POST" ACTION="do_sendform.php">
Contact Name:<INPUT TYPE="text" NAME="last_name" VALUE="" SIZE="25" MAXLENGTH="25">
Company:<INPUT TYPE="text" NAME="company_name" VALUE="" SIZE="25" MAXLENGTH="25">
Email Address:<INPUT TYPE="text" NAME="email" VALUE="" SIZE="25" MAXLENGTH="25">
Phone Number:<INPUT TYPE="text" NAME="phone_number" VALUE="" SIZE="25" MAXLENGTH="25">
Card selected:<SELECT NAME="card_selected"><OPTION>SleighBells<OPTION>Snowflake<OPTION>Gingerbread</SELECT>
<INPUT TYPE="submit"></TD><TD><BR><INPUT TYPE="reset"></TD></TR>
</FORM>
</BODY>
PHP Code (file name do_sendform.php):
<?php
$msg = "Contact Name:\t$last_name\n";
$msg = "Company Name:\t$company_name\n";
$msg .= "Sender E-Mail:\t$email\n";
$msg .= "Phone Number:\t$phone_number\n\n";
$msg .= "Card Selected:\t$card_selected\n\n";
$recipient = "rsuarez@blurtdesign.com";
$subject = "eCARD";
$mailheaders = "From: Customer <> \n";
$mailheaders .= "Reply-To: $email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HEAD><TITLE>titleTITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $last_name</H1>";
echo "<P align=center>Your request has been sent.<BR> </P><BR>";
echo "<H1 align=center>return to<BR><a href=HTTP://www.blurtdesign.com>www.blurtdesign.com</a></H1>";
echo "</BODY>";
?>