• Notice regarding image hosts and attachments. See here.

PHP variable problems, someone please help!

Is your if statement working?

Put an echo inside your if statement to check that it even runs through the if first.

Code:
if($_POST["submit"] == "Edit User")
{

echo "If statement is working";

}

If that doesn't display somewhere in your page then there is something wrong with your if statement.

I have a feeling that it might not be working because I don't think you can pass "Edit User", Try changing the "Edit User" in the value of the submit for your form to "EditUser"
 
Last edited:
why does this always happen

i post on OcUK and then like 30 mins later i solve it by just messing about with things

/note to self

use $_GET not $_POST
 
Back
Top Bottom