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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.