i want to do member system, i want to be register form, then creat acount and there was login form with this acount please tellme how to do this with php/mysql thanks
First of you need to register the user, check if the username/email already exists in the database, use a mysql query for this, if there is then tell the user that a username with this username/email already exists. If not, then carry on with the registration, insert the username/email/password into the database, you might have a check password feature where you require the password to be entered twice, and see if they match. Once they have inserted you can either set the logged in cookie after that or you can redirect them to a login page.
crazyryan so i must creat table users and whrite there with mysql_query username, hash of password, and other information in the moment of registration and then how i can make login form please show me php example login form wich take information of user from database. thanks
Here are some online tutorials. http://www.plus2net.com/php_tutorial/php_signup.php http://php.about.com/od/finishedphp1/ss/php_login_code.htm http://www.trap17.com/forums/php-simple-login-tutorial-t7887.html Or you can have a look at some existing scripts and see how they work. http://www.hotscripts.com/PHP/Tips_and_Tutorials/User_Authentication/index.html
I quite like this one http://www.phpfreaks.com/quickcode/Anti-SQL-Injection-Login-Filter/203.php as it helps against SQL injection also. Make sure that you MD5 the password on this one though as it appears they have not done so.