It seems that only the first condition is being evaluated.

I know that if  both of the following conditions are false then the second
set of statements should get read, and that's what happens, but when I set
$name to true and $text to false (true||false) then the first set gets read.

Shouldn't both conditions be true in order for the first set of statements
be read? Why would the first set of statements get read when the conditions
are (true||false)?

Thanks in advance for your help.

if ($name || $text)


  $text = stripslashes("$text");
  print "Hello $name\n<br>";
  print "You said:\n<br> $text\n";


  print "Sorry, but you seem to have left one or more entries blank.<br>\n";
  print "Please return to <a href=\"/prac/form.html\">form</a>\n";
  print " and complete the input<br>\n";


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to