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 = "[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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.