Jump to content

Retrieve and displaying user registration details from database


amav

Recommended Posts

Hi

 

I am new to this post. I am trying to retrieve and display user registration details. I have a user registration form. When user clicks submit all details go into database (this I am able to do). I want that besides doing that all these details should also be retrieved & displayed in display form, so that user can either confirm or update those details. Once user clicks confirm he should go to Login page

 

Currently I have a start.php page that all connect to database details

// Connect to the database

mysql_connect ($db_host, $db_user, $db_pass) or die ('Could not connect to the database.');

mysql_select_db ("test");

 

Another functions.php page that has all the functions - user_register, user_login, user_logout.

 

Register.php page that calls user_register function from functions.php.

 

I want to write a user_display function in functions.php page that will help me retrieve registration details for user who has just submitted the registration form. I also want to know how to call this function in my display.php page & how to diplay these values in display_form page.

 

I hope all this makes sense. If someone could let me know, it wud be gr8 help

 

 

you can either preview first the data that the user wants to add before processing

submit > display all the data > confirm > add

 

all you need to do is pass the post data to another page for display and use that as the value of your fields

so they can edit that

eg....

<input type='text' name="namehere" value="<?php echo $_POST['name']?>">

 

or add them direct;y to your database and just select them for confirmation i believe the first one is better

Im not going to elaborate more but heres a short explanation

 

sumbit > add to database > select from database > display for confirmation >

 

if you cant get what im trying to say on my second idea read some tutorials first regarding retrieving data form db using php then get back here

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.