techker Posted February 7, 2007 Share Posted February 7, 2007 hey guys i have this order form http://techker.vipzone.biz/enligne.php <? // Enter your Email below $myemail = ""; $ipi = getenv("REMOTE_ADDR"); if ($Submit) { if(!trim($visitor_name)) { $message = "<font color=red>Ton nom?</font>"; } else if(!trim($visitor_email)) { $message = "<font color=red>Ton email?</font>"; } else if(!trim($visitor_message)) { $message = "<font color=red>Ton messages?</font>"; } else { $todayis = date("l, F j, Y, g:i a"); $subject = "Commende en ligne"; $email_message = "Visitor mail \r Messsage: \r $visitor_message \r Visior IP: $ip \r Email $visitor_email\r Messsage: \r $visitor_comments "; $from = "De: $visitor_name<$visitor_email>"; mail ($myemail,$subject,$email_message,$from); $status = "sent"; } } ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>ORDER FORM</title><style type="text/css"> <!-- body { background-color: #FFFFFF; } .style1 {color: #0000FF} .style2 {color: #003399; } --> </style></head> <body> <table width="530" height="746" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#eaedef"> <tr> <td width="13" valign="top" bgcolor="#003399"> </td> <td width="507" height="19" valign="top" bgcolor="#003399"> </td> <td width="10" valign="top" bgcolor="#003399"> </td> </tr> <tr> <td width="13" valign="top" bgcolor="#003399"> </td> <td height="708" valign="top" background="finisht/members/images/feature_bg_bgw.gif"><table width="496" height="708" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="496" height="708" valign="top"><? if ($status == "sent") { ?> <div align="center"> <span class="style2">Merci <? echo $visitor_name ?></span>(<? echo $visitor_email?>)<span class="style2"><br> Votre commande à été envoyer!<br> <br> Votre IP: <? echo $ip ?> </span><br> </div> <? } else { ?> <div align="center"><? echo $message ?></div> <form method="post" action="<? echo $_SERVER['finisht/members/PHP_SELF'] ?>"> <input type=hidden name="ip" value="<?php echo $ipi ?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#FFFFFF" class="style1"><div align="center" class="style1"></div> <div align="center" class="style1"></div></td> </tr> <tr> <td><div align="center"></div></td> </tr> <tr> <td><div align="center" class="style2">Name</div></td> </tr> <tr> <td><div align="center"> <input name="visitor_name" type="text" id="visitor_name" value="<? echo $visitor_name ?>"> </div></td> </tr> <tr> <td><div align="center" class="style2">Email </div></td> </tr> <tr> <td><div align="center"> <input name="visitor_email" type="text" id="visitor_email" value="<? echo $visitor_email ?>"> </div></td> </tr> <tr> <td><div align="center" class="style2">Your order (Please don't forget the QTY) </div></td> </tr> <tr> <td height="179"><div align="center"> <textarea name="visitor_message" cols="50" rows="15" id="visitor_message"><? echo $visitor_message ?> Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY:</textarea> </div></td> </tr> <tr> <td height="97" valign="middle"><label><span class="style2">COMMENTS</span> <textarea name="visitor_comments" cols="60" rows="5"id="textarea"><? echo $visitor_comments ?> Please do not forget your phone number.thx #</textarea> </label></td> </tr> <tr> <td><div align="center"> <input name="Submit" type="submit" id="Submit" value="SEND"> <input type="reset" value="RESET"> </div></td> </tr> </table> </form> <? } ?></td> </tr> </table></td> <td width="10" valign="top" bgcolor="#003399"> </td> </tr> <tr> <td width="13" valign="top" bgcolor="#003399"> </td> <td height="19" valign="top" bgcolor="#003399"> </td> <td width="10" valign="top" bgcolor="#003399"> </td> </tr> </table> </body> </html> se the probleme is that it is very ugly and hard to read when i receive it in my emails. i need help for the reason that i wold like to make this form in one.not seperated. or if there is one that is already made . any body have an idea how i could make it nicer? thx for the help. ??? Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/ Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 Change those \r to \r\n Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179517 Share on other sites More sharing options...
techker Posted February 7, 2007 Author Share Posted February 7, 2007 Change those \r to \r\n sorry im confused Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179524 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 Change $email_message = "Visitor mail \r Messsage: \r $visitor_message \r Visior IP: $ip \r Email $visitor_email\r Messsage: \r $visitor_comments "; to $email_message = "Visitor mail \r\n Messsage: \r\n $visitor_message \r\n Visior IP: $ip \r\n Email $visitor_email\r\n Messsage: \r\n $visitor_comments "; And it will be formatted nicer. Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179526 Share on other sites More sharing options...
techker Posted February 7, 2007 Author Share Posted February 7, 2007 il try it thanks this is what i get in my email Visitor mail Messsage: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# tie raps QTY:2 Item# me QTY:1 Item# QTY: Item# QTY: Item# tie QTY:2 Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Item# QTY: Visior IP: 74.12.225.178 Email techker@gmail.com Messsage: Please do not forget your phone number.thx #sgsdgasdg Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179536 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 Where is the code where it adds up the items? That is the part you'll need to edit to get rid of these empty ones. Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179539 Share on other sites More sharing options...
techker Posted February 7, 2007 Author Share Posted February 7, 2007 the thing is is that in the texte area i put item and qty. but the hoel script is there. Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179546 Share on other sites More sharing options...
Jessica Posted February 7, 2007 Share Posted February 7, 2007 I don't understand what the problem is then. Your email looks just like whats in the textbox. Explain the problem more specifically. What is wrong? Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179549 Share on other sites More sharing options...
techker Posted February 7, 2007 Author Share Posted February 7, 2007 i juste need to make it more user frendly and less messy. cause it looks bad .lol i wold like to make a form with all of that but separeded so it looks nicer and when you receive it as well. Quote Link to comment https://forums.phpfreaks.com/topic/37548-order-form-help-please/#findComment-179555 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.