HNX Posted December 15, 2007 Author Share Posted December 15, 2007 ok this time it didnt even show me the msg sayin "ur msg has been received" 2. im attaching the picture of the outcome and also the picture of what i want it to look like first one is the outcome of the script u gave me and the name appears in the message field and the second one is what i want it to look like and ill be back in like 20 min cuz i have to pray "isha" Assalam 'Aleikum [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
phpSensei Posted December 15, 2007 Share Posted December 15, 2007 try this <?php $form = true; if(isset($_POST['Submit'])){ $to = "info@growth-flexvpro.net"; $subject = $_POST['subject']; $message = $_POST['detail']; $from = $_POST['customer_mail']; $headers = "From: $from"; $headers .= "Name: ".$_POST['name']; if(($to == "")||($subject == "")||($message == "")||($from == "")){ echo "Please fill in all the fields"; $form = true; } else{ if(mail($to,$subject,$message,$headers)) { //echo "Thank you for your interest, your e-mail was sent."; echo "Thank you for your interest, your e-mail was sent."; $form = false; } } } if($form == true){ print '<form action="" method=post name=form1 id=form1> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td width="16%"><span class="style108">Subject</span></td> <td width="2%"><span class="style104">:</span></td> <td width="82%"><input name="subject" type="text" id="subject" size="50" /></td> </tr> <tr> <td><span class="style108">Message</span></td> <td><span class="style104">:</span></td> <td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td> </tr> <tr> <td><span class="style108">Name</span></td> <td><span class="style104">:</span></td> <td><input name="name" type="text" id="name" size="50" /></td> </tr> <tr> <td><span class="style108">Email</span></td> <td><span class="style104">:</span></td> <td><input name="customer_mail" type="text" id="customer_mail" size="50" /></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Submit2" value="Reset" /></td> </tr> </table> </form>'; } ?> Quote Link to comment Share on other sites More sharing options...
HNX Posted December 15, 2007 Author Share Posted December 15, 2007 this time its not showing the email..... Quote Link to comment Share on other sites More sharing options...
HNX Posted December 15, 2007 Author Share Posted December 15, 2007 aight is there a way to correct my left table in "safari" cuz it shows it really awkwardly :S and the code doesnt show the email Quote Link to comment Share on other sites More sharing options...
HNX Posted December 15, 2007 Author Share Posted December 15, 2007 .....so is there a way to fix it? is because i dont have a frame? Quote Link to comment 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.