Anyone who is familiar in using Template Engines .. Such as smarty , please read this.
I have a page called edit_profile.php , where i allow my members to choose thing's such as their age , ethnicity , ect some drop down forms.
If i have form options , such as age ..
18
19
20
21
22 .. ect
And they select , let's say "22" , and submit the form , the age of 22 will be recorded into Mysql. Ok that's fine , great.
Now , the next time they goto edit_profile.php , how can i make the drop down box display the age they submitted?
Ive tried setting the "selected" option in the html form , but then whatever age they selected will show twice... 1 time b/c the age is an option in the list , and another b/c it's the age that is selected.
I dont want this , im trying to get the form to show the age they submitted , and only show in the drop down box 1 time.
If i can clarify what im trying to do further , please let me know , i really need some help with this , and im not sure how to do it.