Hi everyone, I have a form page where the customer enters their email address to see if they have forms available to download.
Once they submit that I use the following code to see if they do indeed have stuff available:
<?php
$email = $_POST['email'] ;
$directory = "http://nycityliving.com/forms/" . $email ;
if (file_exists($directory)) {
header("Location: $directory");
} else {
header("Location: http://nycityliving.com/form2.php");
}
?>
But it does not work and I cannot figure out why? :(
All I get is a 404 error page.
Anyone have any ideas?
Thanks, Ron