amav Posted April 12, 2008 Share Posted April 12, 2008 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 Link to comment https://forums.phpfreaks.com/topic/100745-retrieve-and-displaying-user-registration-details-from-database/ Share on other sites More sharing options...
teng84 Posted April 12, 2008 Share Posted April 12, 2008 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 Link to comment https://forums.phpfreaks.com/topic/100745-retrieve-and-displaying-user-registration-details-from-database/#findComment-515339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.