$password=md5($password); mysql_query("INSERT INTO yourtable (name,password) VALUES ('$name', '$password')");