Jump to content

Ok.. I got this form php script to work... now how do i add a confirmation page?


kevinrea

Recommended Posts

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 = "avhomeinspector@sbcglobal.net, ksrea@sbcglobal.net";

$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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.