View Full Version : Set up form for mls search

05-24-2007, 12:35 AM
I have MLS searches set up on my site that link to the MLS site. How can I set up a registration form that will allow me to receive the registration information and then allow the person to go to the mls page at http://www.southfloridarentals-homesales.com/rental_search.html when they hit the submit button. What I am trying to accomplish is having their info emailed to me and also go to the page. The only forms I can find serve one purpose.
Thanks in advance,
My bellsouth email address was taken over and I am locked out, so please reply to palmbeachrealestatemanagement******.com if you email me.

05-24-2007, 10:34 AM
It is very easy.

First solution:
Create a php file with the following script: (open Notepad and paste the code in there)

$mailto ="exampleemail@example.com";
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = $mailto;
$mailsubj = "Type your mail subject here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
if ($key!="submit")
$mailbody .= "$key : $val\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);
header("Location: http://www.southfloridarentals-homesales.com/rental_search.html");

Change the parts in blue to be your own details.
Now go to Save As, select File type: All Files, and save the file as "action.php" on your computer.

Upload the file on your site.

Open the form page in your BV, set the form action in "action.php" and Save / publish.

You are done.

Second solution : Leave everything as it is. In the thank you page, where you have the script, add this line in the Between Head Tag:

<META HTTP-EQUIV="REFRESH" CONTENT="6;URL=http://www.southfloridarentals-homes...al_search.html (http://www.southfloridarentals-homesales.com/rental_search.html) ">

This will redirect the visitor to the desired page, after 6 seconds. You can change 6 to whatever you like.

Third solution : Use ABVFP: it will redirect the visitor automatically to whatever page you set it to, after the mail submission.