coverland914 wrote: > --- In [email protected], Wade Smart <[EMAIL PROTECTED]> wrote: > > >> You can do >> if(isset($_POST['password']) { >> >> to see if the password is set. Then you can check to see how many >> characters are present. If there is 1 or less, then that is a bad >> password and they need to try again. >> >> wade >> >> > > Hi Wade, that won't check their entry against the content of > password_tbl though, will it? I'd like to get with about 5 people > ahead of time, enter their name and whatever password they'd like to > use in password_tbl, then when they do an update, their name & > password would have to match the assigned combination in password_tbl > BEFORE the update would be performed, else - they'd be asked to click > the back button, try again, etc just as they are with the portion of > code ahead of where this query would go which won't allow blank text > field entries. Something down the line of: > $query = "SELECT * FROM $table > if($updater=="updater_column") AND ($passwordd=="passwordd_column") > THEN... perform update >
07142007 1231 GMT-6 DST Ok. So what I would do is: Ask for the username and password in a form: match the username to a username in the db and then the password to password. If the username fits and the password doesnt, then they cant go on to the next step. I would just repost the page with an error on it in red saying next to the password - try again.
