problem with php logic
Hi,
If I leave out the ?name= from logic.php it correctly displays "no name specified." But if I do logic.php?name=Jack it displays wrong name. Same with a bogus value. I tried changing the operator to !=, but the code outputs "name accepted" for any value using this method. :confused: I would appreciate any tips with this. Code:
<?php |
I think your evaluation needs to be as follows:
Code:
if ($var != "Jack" && $var != "Jill" && $var != "Ted" && $var != "Sarah") |
Thanks! That did the trick
|
All times are GMT -5. The time now is 08:20 AM. |