kevinrea Posted October 2, 2007 Share Posted October 2, 2007 hi guys, i finally got the php code to work with my form that is in SwishMax. How do I go to a Confirmation Page after they hit the submit button ? here is my php code... **************************************************** <?php $Name = $_POST['Name']; $Email = $_POST['ClntEmail']; $Address = $_POST['ClntAddress']; $City = $_POST['ClntCity']; $State = $_POST['ClntState']; $Zipcode = $_POST['ClntZipcode']; $Phone = $_POST['ClntPhone']; $DesiredCity = $_POST['DesCity']; $PriceRange = $_POST['PriceRnge']; $MinBedrooms = $_POST['MinBdrooms']; $MinBathrooms = $_POST['MinBthrooms']; $MinSqFoot = $_POST['MinSqFt']; $PropertyType = $_POST['PropType']; $sendTo = "[email protected], [email protected]"; $subject = "Message from Contact Form on SearchWestervilleHomes.com"; $msg_body .= "Name: $Name\n"; $msg_body .= "E-Mail: $Email\n"; $msg_body .= "Address: $Address\n"; $msg_body .= "City: $City\n"; $msg_body .= "State: $State\n"; $msg_body .= "Zipcode: $Zipcode\n"; $msg_body .= "Phone: $Phone\n"; $msg_body .= "Desired City-Area: $DesiredCity\n"; $msg_body .= "Price Range: $PriceRange\n"; $msg_body .= "Minimum Bedrooms: $MinBedrooms\n"; $msg_body .= "Minimum Bathrooms: $MinBathrooms\n"; $msg_body .= "Minimum Square Feet: $MinSqFoot\n"; $msg_body .= "Property Type: $PropertyType\n"; (mail($sendTo,$subject,$msg_body)) ?> **********************************\ thanks, Kevin Link to comment https://forums.phpfreaks.com/topic/71480-ok-i-got-this-form-php-script-to-work-now-how-do-i-add-a-confirmation-page/ Share on other sites More sharing options...
cooldude832 Posted October 2, 2007 Share Posted October 2, 2007 at the end add a header("location: $url"); and just define $url to that page. Link to comment https://forums.phpfreaks.com/topic/71480-ok-i-got-this-form-php-script-to-work-now-how-do-i-add-a-confirmation-page/#findComment-359825 Share on other sites More sharing options...
kevinrea Posted October 2, 2007 Author Share Posted October 2, 2007 Thank You !! Link to comment https://forums.phpfreaks.com/topic/71480-ok-i-got-this-form-php-script-to-work-now-how-do-i-add-a-confirmation-page/#findComment-359845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.