The problem is that my mail form file isnt working. I have it included in order.php but doesnt work, i need someone to help me fix the code or find the error.
HTML SCRIPT:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <body>
PHP SCRIPT:
<?php
#########################
##Goldwriters Mail Form##
####By Tfusion(Admin)####
#########################
//Vars Declaration
$adminemail = "orders@goldwriters.info";
$name = $_POST["name"];
$email = $_POST["email"];
$plan = $_POST["plan"];
$message = $_POST["message"];
//Error Checking
if ($name == "") {
include "mailform.php";
echo "Please write your contact name\n";
}
if ($email == "") {
include "mailform.php";
echo "Please write your contact email\n";
}
if ($plan == "") {
include "mailform.php";
echo "Please specify the plan you want\n";
}
if ($message == "") {
include "mailform.php";
echo "Please write what you need, your site link, etc\n";
}
//Mail Content
$mailcontent= "New writing order at Gold Writers with the following info:\n
----------------------------------------------\n
Name: $name\n
Email: $email\n
Requested Plan: $plan\n
----------------------------------------------\n
The Message Was:\n
$message\n
----------------------------------------------\n
Generated By GoldWriters Mail Script\n
----------------------------------------------\n";
//Email Sending
if ($submit) {
mail ("$adminemail", "Writing Order", $mailcontent);
}
?>
HTML SCRIPT:
<center> <table border="0" cellpadding="0" cellspacing="0"> <form method="post"> <tr> <td> <font size="2" face="Verdana"><b>Name<font color="#FF0000">*</font>:</b></font> </td> <td width="182"> <input type="text" name="name" value="" size="30" maxlength="40"> </td> </tr> <tr> <td> <font size="2" face="Verdana"><b>E-Mail Address<font color="#FF0000">*</font>:</b></font> </td> <td> <input type="text" name="email" value="" size="30" maxlength="50"> </td> </tr> <tr> <td> <font size="2" face="Verdana"><b>Plan<font color="#FF0000">*</font>:</b></font> <br /> If you dont know what to put, <a href="plans.php">Check here</a> </td> <td> <input type="text" name="plan" value="" size="30" maxlength="40"> </td> </tr> <tr> <td colspan="2"> <font size="2" face="Verdana"><b>Extra Info<font color="#FF0000">*</font>:</b></font> <br />Plase include your site link, instructions, etc. </td> </tr> <tr> <td colspan="2"> <textarea rows="10" cols="50" name="message" maxlength="500"></textarea> </td> </tr> <tr> <td colspan="2"> <input type="reset" value="Reset"> <input type="submit" name="submit" value="Send Information"> </td> </tr> <tr> <td colspan="2" align="center"> <font size="2" face="Verdana"><font color="#FF0000">*</font> Required </font> </td> </tr> </form> </table> </center> </body> </html>Thanks


Sign In
Create Account


Back to top









