I want to have the option of allowing the users who log into my site, be able to change their password, or e-mail, but values, are swappable, so figuring out how I can do one will help me do the other. So far I know how to get the username,
'SELECT `username`,`password`,`email` FROM `users` WHERE 1 AND `username` = '$user_name' LIMIT 0, 30';
And I don't want to put cookies into them with their password, but I guess I could do that for the e-mail part, but then using that, how can I go over one field, and edit the value to the right of it on the table?
And as long as I am already asking for help, might as well ask this too, how can I check that they put in an e-mail address that had a @ and a . in it, just so that I can be a little more asured that they put in a good one, and how can I can allow only passwords that like at most 8 characters long? Same for username, allowing them only to be 8 charactes at max, and also not letting certain things in, like < or > or / or all of those characters. Thanks a bunch!