//Assign contents of form to variables #$userid = $_POST['userid']; #$passwd = $_POST['passwd'];
Uncomment these lines - that's why your variables are blank.
$sql = "INSERT INTO users (userid, passwd) VALUES (userid = 'userid', passwd = 'passwd')";
You can also write this as follows:
$sql = "INSERT INTO users (userid, passwd) VALUES ('userid', 'passwd')";
But I don't know if the way you have it should work or would cause an error.
HTH,
-Lisi
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php