![]() |
| ||
| To create a registration page and login page I want to know how to create a registration page and login page ... any tutorials about this and i need some complete web templates too(not just home page)... can any one help me.....any ref plz |
| ||
| Re: To create a registration page and login page You need a server-side script. |
| ||
| Re: To create a registration page and login page Simple PHP login: Create a database (mysqladmin) Name the table "dbUsers." It will need 4 fields: Name Type Addition id int(10) Primary Key, AUTO_INCREMENT username varchar(16) Unique password char(16) email varchar(25) Create a new file and name it dbConfig.php This will file will connect to the database <? Registration name this file "register.php" <?php Login name this file "login.php" <?php Members Area name this file "members.php", and include on pages that are only for registered users ?php logout name this file "logout.php" <?php There you go... need more help or confused, just ask. If this information solved your problem. Please add to my reputation. Thanks macneato |
| ||
| Re: To create a registration page and login page Oh, to test your php, you'll need a server. I sugguest working on localhost. Lots of ways to do this. Easyphp is the simplest to setup. Place all files in the installation directory/publicHTML. |
| ||
| Re: To create a registration page and login page THIS IS GREAT! Thank you! One thing... how can I get it so that people can request their password when and if they loose it? Also.. it seems that I had to change the type for PASSWORD to TXT in order for it to work.. |
| ||
| Re: To create a registration page and login page With the password field. Change the type to varchar(25) As for requesting passwords. Yes. It can be done. Ask the user to enter their email address. select password from your_db where email_address = 'their_address' Use the mail() function to send the password to the email address. SQL: SELECT dbusers.password FROM dbusers WHERE (dbusers.email = 'pforgot') 'pforgot' is any name you've given to the form text input. Will write up a full script as soon as i get time. It's monday morning.. Things are a little hectic. |
| ||
| Re: To create a registration page and login page I changed the type and still doesn't work.. when I try to login after creating new login, it says "Sorry, could not log you in. Wrong login information." I will try the other.. Thank you! Quote:
|
| ||
| Re: To create a registration page and login page That would be great! I am still learning and developers like you help in this learning process. |
| ||
| Re: To create a registration page and login page |
| ||
| Re: To create a registration page and login page hey hi,dis is prakruti i too have same pro...i m creating a website for which i require registration page and login page.I have referred to the reply given in dis forum.But i guess dis code uses mysql as database but my database is DB2 frm IBM..plz can u suggest me how to design the registration and login webpage using DB2 as database.I would be very grateful if anyone helps me. thanking u |
| All times are GMT -4. The time now is 2:39 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC