Page 1 of 1

User Profiles - edit_profile.php not showing user info in

Posted: Tue Jul 19, 2011 9:29 am
by BluePixel
text fields.

Hi I'm following this tutorial and the user profile info is not showing up in the form. All I see is a blank form. I have a feeling this has to do with a SESSION or something, but I followed the tutorial exactly. I'm implementing this into my already existing login system and site. Do I have to modify my login system to get this to work? Thanks.

Re: User Profiles - edit_profile.php not showing user info i

Posted: Tue Jul 19, 2011 9:41 am
by BluePixel
Ok I know why I wasn't seeing anything. I don't have a user with an id of 1 so I modified this
$_SESSION['uid'] = 1;
to this
$_SESSION['uid'] = 310; 
which is pointless.

How do I make it so an actual user logs in and edits their profile? Thanks.

Re: User Profiles - edit_profile.php not showing user info i

Posted: Tue Jul 19, 2011 2:27 pm
by jacek
Like I said in the video, setting that session variable manually liek that is just to simulate someone being logged in.

Anyway, see here http://betterphp.co.uk/board/viewtopic.php?f=7&t=511