I wish to expand the users profile with date of birth. I have added field bday into the db and everything works, except for 1 thing. When a user tries to edit their profile, it doesn't show his or her b-day. This is strange, because when they go to their personal page it does show. The way I see it in the code, the properties for showing the b-day come down to exactly the same. So why will it show in the personal page, but not on edit??
The code to show the b-day on the personal page is:
|
Code:
|
if ($userinfo[bday]) echo ""._BDAY2.": $userinfo[bday]
\n"; |
The code to show the b-day on the edit page is:
|
Code:
|
.""._BDAY." "._OPTIONAL."
"
."<input type=\"date\" name=\"bday\" value=\"$userinfo[bday]\" size=\"12\" maxlength=\"10\">
" |
Just can't seem to figure it out!
The second thing I wish to add to the users profile is a picture. This means, I want an option for the user to upload their picture in their personal page. Now I'm a complete newbie when it comes to php scripting so if anyone could get me started / help me out on this, I would greatly appreciate it.