CONFUSED
Posted: Sun Aug 19, 2007 4:04 pm
in a form, how can you make it so that if someone puts in an invalid account (example to private message someone in a forum) it says: Sorry, This account is invalid.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
You have to query the database when the form is submitted. The form has an "action" attribut which points to a PHP file. That PHP file looks what username was requested then builds a SELECT query for the database:duffy wrote:in a form, how can you make it so that if someone puts in an invalid account (example to private message someone in a forum) it says: Sorry, This account is invalid.
Code: Select all
select id from users where username = '$username'