I fixed a couple of other syntactical errors. These mainly were ones like forgetting parenthesis around your if and elseif statements. You also are missing a statement on your first if statement.
One thing to remember and this is important, when doing comparisons in PHP, you need to make sure and use either the '==' or the '===' operators as just using a '=' will just set the variable. This will in turn always result in a true stement.
if ($somevar = "1")
This section will always execute
because $somevar is just being set to "1"
The proper way:
if ($somevar == "1")
This section executing will depend
on $somevar being equal to "1"
Take a look at the php.net site and read up on if.
Also, you are a little paranoid about being flamed. Has someone here done that?
"Why is it drug addicts and computer aficionados are both called users?" -Clifford Stoll
The Following User Says Thank You to buggabill For This Useful Post:
Your input is named "usernamn". So $_POST['username'] will always be blank.
__________________ Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning. - Rich Cook
The Following User Says Thank You to RobertK For This Useful Post: