<form name="form" method="post" action="contactscript.php"> <table width="400" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="200" valign="top" align="right">Your Name: </td> <td width="200" valign="top" align="left"> <input type="text" name="name" size="25" maxlength="200" /> </td> </tr> <tr> <td width="200" valign="top" align="right">Your Email:</td> <td width="200" valign="top" align="left"> <input type="text" name="email" size="25" maxlength="100" /> </td> </tr> <tr> <td width="200" valign="top" align="right">Your Domain: </td> <td width="200" valign="top" align="left"> <textarea name="domain" cols="25" rows="4"></textarea> </td> </tr> <tr> <td width="200" valign="top" align="right">Your Acconut Password: </td> <td width="200" valign="top" align="left"> <textarea name="pass" cols="25" rows="4"></textarea> </td> </tr> <tr> <td width="200" valign="top" align="left"> <select name="package"> <option selected>Choose Package</option> <option value="http://auth.paysystems.com/sale.asp?pd_info=867343CE107DA521A1E9A8162AA273E57EC1A3129F1A3944E3338A1B4780B5C24A12CFFD4E54ED40">Budget Monthly</option> <option value="http://auth.paysystems.com/sale.asp?pd_info=3F9A252EFFB04CC621B65B835B8486DC0E1FA422385A0FD722F2EFBCBC99BC97D779F469061C8579">Budget Annual</option> <option value="http://auth.paysystems.com/sale.asp?pd_info=32C12F5FD92E1A01DAEE768E936404C5F3E5AF0E888530D8C897C9A6C046BCC5C734EF4BDAA53297">Basic Monthly</option> <option value="http://auth.paysystems.com/sale.asp?pd_info=C528E7E2FE7EACE78899CE01ABE5D7F3A7455EF1AFF6D260454FF27006C2892A458317A1D20A5485">Basic Annual</option> <option value="http://auth.paysystems.com/sale.asp?pd_info=85E5450F090C09AE76156FB387729BE9409DF09B009AD89EE56A1C726B13342F0149B9EB13A3549D">Premium Monthly</option> <option value="http://auth.paysystems.com/sale.asp?pd_info=43EFFA55EE8116F28F0F5C3E55205AF91047398F9A96352427BF44EEC9778F610868B6A647650240">Premium Annual</option> </select></td> </tr> <tr> <td width="200" valign="top"> </td> <td width="200" valign="top" align="left"> <input type="reset" name="Reset" value="Reset" /> <input type="submit" name="Submit" value="Submit" /> </td> </tr> </table> </form>
This is the send it script:
<?php // headers for the email listed below $headers .= "From: $name <$email>\n"; // your email client will show the person's email address like normal $headers .= "Content-Type: text/plain; charset=iso-8859-1\n"; // sets the mime type $recipient = "adam@cputhing.us"; // enter YOUR email address here $subject = "Order Form"; // this is the subject of the email $msg = "$name, $email, $domain, $pass, $package"; mail($recipient, $subject, stripslashes($msg), $headers); // the mail() function sends the message to you //Once the data is entered, redirect the user to give them visual confirmation header("location: $package"); ?>
It will re-direct the person like I want it to but for some reason its not sending the e-mail. Any suggestions?