Peter Shadeslayer
New member
Okay, heya!
I'm trying to make a user registration script... not really sure how. I know I haven't cleaned up the input any, but here's what I have so far. If I use html entities and mysql_real_escape_string on this and use the whole isset() thing, will it work?
I'm also not sure how the CURDATE() function works...
I'm trying to make a user registration script... not really sure how. I know I haven't cleaned up the input any, but here's what I have so far. If I use html entities and mysql_real_escape_string on this and use the whole isset() thing, will it work?
PHP:
$query = "INSERT INTO users (user, password, usergroup, email, regdate)
values('".$_POST['user']."', '".$_POST['password']."', 'user', '".$_POST['email']."', CURDATE()";
I'm also not sure how the CURDATE() function works...