i can't receive the email that i wanted to have... my code are as follows:
my order.php
Code:<form id="orderform" method="POST" action="go.php"> <br /><hr> <b><font size=4>Item Information</font></b><br> <hr /> <br> Item Name :<br /> <input name="ItemName" type="text" id="ItemName" maxlength="25" /><br /><br /> Quantity : (Minimum of 2 pcs to 100 pcs only)<br /> <input name="Quantity" id="Quantity" type="text" maxlength="3" /><br /><br /> Color :<br> <select name="Color" id="Color"> <option>Green</option> <option>Blue</option> <option>Yellow</option> <option>Red</option> <option>Navy Blue</option> <option>Light Blue</option> <option>Black</option> <option>Orange</option> </select> <br /><br /> <hr /> <b><font size=4>Customer Information</font></b><br> <hr /> <br /> Customer Name : <br /> <input name="CustomerName" id="CustomerName" type="text" maxlength="100" class="nml"/><br /><br /> Customer Address : (Please include your zip code)<br /> <textarea name="CustomerAddress" id="CustomerAddress" class="nml" ></textarea> <br /><br /> Customer Contact Number(s): <br /> <input name="CustomerContactNumber" id="CustomerContactNumber" type="text" maxlength="100" class="nml"/><br /><br /> E-Mail Address : <br /><input name="Email" id="Email" type="text" maxlength="100" class="nml"/><br /><br /> Optional Message : <br /> <input name="OptionalMessage" id="OptionalMessage" type="text" maxlength="1000" class="hyt" /><br /><br /> By clicking "Submit Order". I verify that all statements are correct and free from any error and thus completing my order request. <input name="" id="submit" type="submit" value="Submit Order" /><br /><br /> Click "Clear Fields" to reset the form.<br /> <input name="" type="reset" value="Clear Fields" /> </form>
and my go.php is:
Code:<?php if(isset($_POST['submit'])) { $to = "lynmick_aus@yahoo.com"; $subject = "Order received"; $headers="Message-ID: <".mktime()."@".$_SERVER['SERVER_NAME'].">\r\n"; $headers.="X-Mailer: PHP v".phpversion()."\r\n"; $headers.="Content-Type: text/html; charset=iso-8859-1\r\n"; //your char set here $body = "Order Information:\s Item Name: ".$_POST['ItemName']."\s Quantity: ".$_POST['Quantity']."\s Color: ".$_POST['Color']."\s Name: ".$_POST['CustomerName']."\s Address: ".$_POST['CustomerAddress']."\s Number: ".$_POST['CustomerContactNumber']."\s Email: ".$_POST['Email']."\s Optional Message: ".$_POST['OptionalMessage']."\s"; mail($to, $subject, $body, $headers); } ?>
what seems to be my problem?
i uploaded this to my www and public_html
what else do i lack?
thanks..


LinkBack URL
About LinkBacks
Reply With Quote


