OK, I have this problem where I have a form on the website, and scripted thorough PHP I'm sending any information submitted on that form to my e-mail address. The problem is all I'm getting is blank e-mails, with all the fields being blank. I could really use anyone's help. Here's the form:
http://kingcola.com/question.html
And here's the PHP4 script:
[This message has been edited by JASRCC_Uber0010 (edited March 05, 2004).]
http://kingcola.com/question.html
And here's the PHP4 script:
Code:
<? mail("c.delsesto@cox.net", "King Beverage Questionaire Form", "Name: $name\nEstablishment: $establishment\nAddress: $address\nCity: $city\nState: $state\nZip: $zip\nPhone: $phone\nFax: $fax\nEmail: $email\nComments: $comment\n", "From: $name\nReply-To: $email\n"); ?> <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; I) [Netscape]"> <title>king</title> </head> <body text="#000000" bgcolor="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#999999"> <center><table BORDER=0 CELLSPACING=0 CELLPADDING=5 WIDTH="750" > <tr> <td COLSPAN="2" BGCOLOR="#000000"> <div align=right> <br><b><i><font face="Verdana"><font color="#FFFFFF"><font size=+3>KING Beverage Co.</font></font></font></i></b> <br> <hr ALIGN=RIGHT NOSHADE WIDTH="50%"></div> </td> </tr> <tr> <td VALIGN=TOP WIDTH="10%" BGCOLOR="#000000"> <div align=right><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="king.html">home</a></font></font></font></b> <p><b><font face="Verdana"><font size=-1><a href="new.html">what's new</a></font></font></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="about.html">about</a></font></font></font></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="links.html">related links</a></font></font></font></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="equip.html">service/equipment</a></font></font></font></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="productlist.html">product list</a></font></font></font></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="troubleshoot.html">troubleshooting</a></font></font></font></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="specoffers.html">special offers</a></font></font></font></b> <p><b><i><font face="Verdana"><font color="#999999"><font size=-1>questionnaire</font></font></font></i></b> <p><b><font face="Verdana"><font color="#FFFFFF"><font size=-1><a href="contact.html">contact</a></font></font></font></b></div> </td> <td> <blockquote> <center><table BORDER COLS=1 WIDTH="80%" BGCOLOR="#FFCC99" > <tr> <td> <center><font face="Verdana"><font size=+1>Answer these 5 questions to see if </font></font> <br><font face="Verdana"><font size=+1><b><i><u>KING COLA</u></i></b> is right for you.</font></font> <p><font face="Verdana">We guarantee to save you $500 - $5000+ per year.</font></center> </td> </tr> </table></center> <form method="post" action="formmail.php4"> <center><table BORDER=0 COLS=1 WIDTH="80%" > <tr> <td> <center><table BORDER COLS=2 WIDTH="100%" > <tr> <td WIDTH="50%"> <dl><font face="Verdana"><b><font size=-1>1)</font></b><font size=-2> When dining out, do you think you know the brand of soda you're drinking?</font></font></dl> <blockquote><input type="radio" name="q1" value="No"><font face="Verdana"><font size=-2>A) No</font></font> <br><input type="radio" name="q1" value="Yes"><font face="Verdana"><font size=-2>B) Yes</font></font></blockquote> </td> <td WIDTH="50%"> <dl><font face="Verdana"><b><font size=-1>2)</font></b><font size=-2> When dining out, you order a Coke and they ask "Is Pepsi OK?". You...</font></font></dl> <blockquote><input type="radio" name="q2" value="Pepsi"><font face="Verdana"><font size=-2>A) have the Pepsi</font></font> <br><input type="radio" name="q2" value="water"><font face="Verdana"><font size=-2>B) have water</font></font></blockquote> </td> </tr> </table></center> <center><table BORDER COLS=2 WIDTH="100%" > <tr> <td WIDTH="50%"> <dl><font face="Verdana"><b><font size=-1>3)</font></b><font size=-2> I believe customers choose to patronize a restaurant or bar for its... <font color="#FFFFFF">....</font></font></font></dl> <blockquote><input type="radio" name="q3" value="food"><font face="Verdana"><font size=-2>A) Food & service</font></font> <br><input type="radio" name="q3" value="beverage"><font face="Verdana"><font size=-2>B) Beverage brands</font></font></blockquote> </td> <td WIDTH="50%"> <dl><font face="Verdana"><b><font size=-1>4)</font></b><font size=-2> When dining out, if a carbonated beverage is cold, fizzy, and tastes good, do you care what brand it is?</font></font></dl> <blockquote><input type="radio" name="q4" value="No"><font face="Verdana"><font size=-2>A) No</font></font> <br><input type="radio" name="q4" value="yes"><font face="Verdana"><font size=-2>B) Yes</font></font></blockquote> </td> </tr> </table></center> <center><table BORDER COLS=1 WIDTH="50%" > <tr> <td><font face="Verdana"><b><font size=-1>5)</font></b><font size=-2> Do you like <b><u>saving money</u></b> and <b><u>maximizing your profitability</u></b>?</font></font> <blockquote><input type="radio" name="q5" value="Yes"><font face="Verdana"><font size=-2>A) Yes</font></font> <br><input type="radio" name="q5" value="No"><font face="Verdana"><font size=-2>B) No</font></font></blockquote> </td> </tr> </table></center> </td> </tr> </table></center> <p><font face="Verdana"><font size=-1>If you chose (<b>A</b> ) to any or all of the questions above, then <b>KING COLA</b> is right for you. Make a <b><i>profitable business decision</i></b> right now. Call or e-mail us and join or growing list of satisfied customers. Let us show you how we can save you loads of money while still serving quality beverages.</font></font> <center> <p><b><font face="Verdana"><font size=-1>Complete and submit the form below, or call us TODAY!</font></font></b></center> <hr WIDTH="100%"> <br> <center><table BORDER=0 COLS=2 WIDTH="90%" > <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>Name:</font></font></div> </td> <td><input type="text" size="25" name="name"></td> </tr> <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>Establishment:</font></font></div> </td> <td><input type="text" size="30" name="establishment"></td> </tr> <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>Address:</font></font></div> </td> <td><input type="text" size = "25" name="address"></td> </tr> <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>City:</font></font></div> </td> <td><input type="text" size="15" name="city"><font face="Verdana"><font size=-1>State:<input type="text" size="2" value="RI" name="state">Zip Code:</font></font><input type="text" size="4" name="zip"></td> </tr> <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>Phone:</font></font></div> </td> <td><input type="text" size="15" name="phone"></td> </tr> <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>FAX:</font></font></div> </td> <td><input type="text" size="15" name="fax"></td> </tr> <tr> <td WIDTH="1%"> <div align=right><font face="Verdana"><font size=-1>E-mail:</font></font></div> </td> <td><input type="text" size="30" name="email"></td> </tr> <tr> <td> <div align=right><font face="Verdana"><font size=-1>Questions/Comments:</font></font></div> </td> <td><textarea name="comment" rows="5" cols="35"></textarea></td> </tr> </table></center> <center> <p><input type="submit" value="Send"> <input type="reset" value="Clear"></center> </blockquote> </td> </tr> </table></center> </form> </body> </html>
[This message has been edited by JASRCC_Uber0010 (edited March 05, 2004).]