Forum Moderators: coopster
How can I make that drop Down box getting the member previous choice instead of defaulting back to Agriculture
<<< Sampling of DD box:
<select name="category" Wrap=virtual><option value="ag">AGRICULTURE</option>
<option value="archi">ARCHITECTS</option>
<option value="auct">AUCTIONEERS</option>
>>>
I can show the member where he/she is listed by using:
<<<
<?php print $s[category];?>
>>>
of course to enter that area the member did login through an Authentication system and indeed they both have a unique ID
Thanks
Henry
If the SELECT box is static, how about using a Javascript function to loop through the OPTIONs (with $s[category] supplied by PHP). When a match is found you can alter the selected OPTION with:
document.myForm.category.selectedIndex = myValue;
...and another similar discussion here:
Using a form to retrieve data from a MySQL database [webmasterworld.com]