View Single Post
Old 11-02-2003, 02:27 PM   #4 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
In looking at the PHP manual page for <comparison operators>, there is a subtle difference between the two.

!= is NOT EQUAL TO
!== is NOT IDENTICAL TO

In the case of your script, either should do what you want, I don't think that's your problem.


Shouldn't this
PHP Code:
if ($p == "general"){ 
be this
PHP Code:
if ($_GET['p'] == "general"){ 
Unless you've got register_globals on, or you define $p further up in your script, then $p hasn't been initialized and won't evaluate properly. I notice you have $_GET['s'] so I have reason to suspect this is your problem. Same thing with all your other values, change $username1 to $_POST['username1'], etc.
bdl is offline   Reply With Quote