Linera Posted September 12, 2007 Share Posted September 12, 2007 I just need a simple plain looking form that ask for:Account Name, Account Password, EmailAfter that, converts password with md5.and adds the account name, password, email, the user's ip address, a default string "normal", and two tinyint of 0The table fields are `accountname`, `accountpw`, `emailaddress`, `ipadress`, `accounttype`, `banned`, `lockip`banned and lockip for tinyint for a 1=true or 0=falseip address is a string of 15 characters.table is called accountsit must also check that email is a vaild address and check the password twice, like a confirm passwordThanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 12, 2007 Share Posted September 12, 2007 Check the PHP form page:http://www.w3schools.com/php/php_forms.aspThere's also a sticky topic in this forum with some more tips for how to process a form. If you haven't made a form before, check the HTML reference, specifically the form and input tags:http://www.w3schools.com/tags/default.aspPHP has an MD5 function you can use to encode the password:http://www.php.net/manual/en/function.md5.phpYou can check the MySQL reference for info on how to connect to and use the database:http://www.php.net/manual/en/ref.mysql.phpYou can learn about email validation with regular expressions here:http://www.zend.com/zend/spotlight/ev12apr.phpAnd you can find the user's IP address in $_SERVER['REMOTE_ADDR'].http://www.php.net/manual/en/reserved.vari...ariables.server Link to comment Share on other sites More sharing options...
user4fun Posted September 12, 2007 Share Posted September 12, 2007 validating email is discussed herehttp://w3schools.invisionzone.com/index.ph...=validate+emailcouple of options that you choose from Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.