I simple need it to send me the information to my email address and direct the subject to a thank you page. http://www.insmatch.com/SmartQuote.aspx All the information that is located in the above link has to be present. Need it done in the next hour so I am willing to pay premium for it!!!! PM ME PLEASE
Shouldnt you be posting this in the asp forums? But, neways the php version would go something like this... $email_content = "whatever message - " . $_POST['form_field'] . " " . $_POST['form_field2'] . " "; mail('YOUR EMAIL ADDRESS', 'SUBJECT', $email_content, 'From: YOURWEBSITE');
Step 1: ------- Rename the above page: SmartQuote.php and update the form action tag to such. Step 2: ------- In the beginning of SmartQuote.php, topmost, add this code: if($_POST['QuoteButton'] != NULL){ $info = "Form Submit Info<br/><br/>"; foreach($_POST as $is => $what){ $info .= "$is = $what<br/>"; } $user_header = "Return-Path: SiteName <myemail@site.com>\r\n"; $user_header .= "From: SiteName <myemail@site.com>\r\n"; $user_header .= "Content-Type: text/html; charset=utf-8;\n\n\r\n"; mail ('myemail@site.com','New Quote Request',$info,$user_header); } PHP: You are done. Peace,
ADMIN, Why is this in the wrong category???? This is PHP code I needed help with. PHP is programming... Very unhappy