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.