User Profiles - edit_profile.php not showing user info in

Post here is you are having problems with any of the tutorials.
Post Reply
BluePixel
Posts: 7
Joined: Tue Jul 19, 2011 9:18 am

User Profiles - edit_profile.php not showing user info in

Post 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.
BluePixel
Posts: 7
Joined: Tue Jul 19, 2011 9:18 am

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

Post 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.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

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

Post 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
Image
Post Reply