RunningClif Posted May 11, 2011 Share Posted May 11, 2011 I am generating a html form that will be sent to a mysql database. In order to fill out this form you must be logged in. On the html form I want a spot for username, this username should be the same one they logged in with. How can I have a spot on the page that automatically has the logged in users username and be able to send that to the database. If anyone could direct me to a website that would be awesome. I realize I am setting myself up for a "let me google that for you" post but I am very new to php and have been searching but cannot find anything. Thanks for the help Link to comment https://forums.phpfreaks.com/topic/236148-php-form-mysql-help/ Share on other sites More sharing options...
spiderwell Posted May 11, 2011 Share Posted May 11, 2011 if the user is logged in, its often that some details of the user is stored in the session object. Using that you could prefill the form element of the current user. or use it to identify and then pull user details from the database. Link to comment https://forums.phpfreaks.com/topic/236148-php-form-mysql-help/#findComment-1214148 Share on other sites More sharing options...
RunningClif Posted May 11, 2011 Author Share Posted May 11, 2011 Thank you for that, I am not sure if what data is stored for me but Ill have to look into that. Link to comment https://forums.phpfreaks.com/topic/236148-php-form-mysql-help/#findComment-1214172 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.