Hey everyone,
As I worked with the script in production mode I discovered a slight problem.
Remember we (Kevin) fixed the problem with the address disappearing when someone updated the calendar month. Well that works fine but when someone submits the form and has left a field blank, I receive the error page OK, but when I click the RETURN hyperlink, the address disappears once again. I guess I need to pass the $listing variable back to calling page like we did with the calendar. I tried to insert the code that Kevin had me place in schedule.php into schedule_appointment.php which is the called php page that generates the error RETURN hyperlink. It didn't work, as the listing address is blank when I return to the schedule.php.
Would appreciate any advice, Gary.
Here are the links:
http://www.tnevni.com/remax/4_timber_ridge_lane/information.php
Click "Schedule Appointment",
Leave fields blank,
Click "Submit Form",
Click "Click here to retturn to Schedule Page"
The address is blank
<?php
$listing = $_POST['listing'];
echo $listing;
?>
Here is a section of the code for schedule_appointment.php:
if (($visitormail) == "" || ($visitor) == "" || ($visitorphone) == "")
{
$listing = $_POST['listing'];
echo $listing;
echo "INFORMATION FIELD IS BLANK" . "<BR><BR>\n" . "Please RE-ENTER Information Field . . ." . "<br><br>\n" ;
echo " " . "> Use BACK Button to return to SCHEDULE Page (Field Entry Information will be RETAINED)" . "<br><br>\n" ;
echo " > " . "<a href=\"" . $subredirectlink . "\">Click here to return to SCHEDULE Page (Field Entry Information will be RESET)</a>";
exit;
}
elseif (preg_match("/.*@tnevni.com$/i", ($visitormail)))
{
$listing = $_POST['listing'];
echo $listing;
echo "YOUR E-MAIL ADDRESS MUST BE UNIQUE" . "<BR><BR>\n" . "Please Re-Enter Your E-Mail Address . . ." . "<br><br>\n" ;
echo " " . "> Use BACK Button to return to SCHEDULE Page (Field Entry Information will be RETAINED)" . "<br><br>\n" ;
echo " > " . "<a href=\"" . $subredirectlink . "\">Click here to return to SCHEDULE Page (Field Entry Information will be RESET)</a>";
exit;
}
?>