> if ($post = "1" && $Age = " ") {echo "NO";}
> else {echo "YES";}
> Now here is what happens. On a first time view of the page it outputs
> 'NO' (Good). If I dont enter anything in the age field and submit the
> form it outputs 'NO' (Good). If I enter a value into the age field and
> submit, it outputs 'NO' (Not Good).
You are assigning these values, not comparing them
$post = "1" // puts "1" in the variable $post
$post == "1" // compares $post to "1"
you need to change your code to
if ($post == "1" && $age == " ") { blah blah blah
HTH
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]