[PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
Hi All, How can I force a selection on a drop down from a value in a database? I have a drop down that contains locations. These locations are contained in a table. When a search is completed the results are displayed and I want to be able to use that same drop down and just force the

Re: [PHP] making selection in drop down

2004-05-28 Thread Miguel J. Jiménez
Use HTML attribute selected in the option field you want to set as default... Alex Hogan wrote: Hi All, How can I force a selection on a drop down from a value in a database? I have a drop down that contains locations. These locations are contained in a table. When a search is completed the

RE: [PHP] making selection in drop down

2004-05-28 Thread Alex Hogan
Use HTML attribute selected in the option field you want to set as default... Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a search. If I'm missing your point please excuse me. I'm a little brain dead this

Re: [PHP] making selection in drop down

2004-05-28 Thread Torsten Roehr
Alex Hogan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Use HTML attribute selected in the option field you want to set as default... Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a search. If I'm

Re: [PHP] making selection in drop down

2004-05-28 Thread Tristan . Pretty
I use a javascript to help me with bigger dropdowns... script function get_links() { document.all[field_name].value='?echo$field_name; ?' /script Torsten Roehr [EMAIL PROTECTED] 28/05/2004 16:12 To [EMAIL PROTECTED] cc Subject Re: [PHP] making selection in drop down Alex