Hi all,
I'm fairly new to PHP, and as my first project I'm creating a member site, and I'm currently in the process of making an update profile page.
I've got everything like username, password, email etc working, but I have become stuck on the user status.
Basically, I have two status options that the user can choose from a drop down menu, Active and Inactive.
I want the page to detect which status the current user is, and make that the default selected option in the list. So for example, if a user is active, and they go to the update profile page, the active option is selected for them in the menu. They should be able to change it also.
I have no real idea how to do this. I suppose it's a matter of just <? echo $status; ?>, but I don't know how to put this into a drop down menu.
Any help on this would be very much appreciated.
Thanks.