ClarkKent101
Programmer
Hi Everyone,
I am trying to build an advanced search page for a website i'm designing in ColdFusion. I have a few drop down menu's which contain labels and values and what i would like to include in each one of those drop down menu's is an option (which will be initially selected) to send nothing when the form is submitted.
E.g. This option will have the label of 'Select Next ...' but should have no value so that it won't send anything in the query string. I'm sure everyone has come across a drop down list like this in some search form where you have certain options that act as subheadings within the drop down list. Problem is when i don't include a value in an option like that the label gets sent in the query string. How do i prevent this from happening? My objective is to have the 'Select Next ...' option send nothing at all, in other words if that option is selected it must be ignored completely as if it doesn't exist so that the results page can process the rest of the values being sent by the other controls on the search form.
Thanks for your time,
- CK
I am trying to build an advanced search page for a website i'm designing in ColdFusion. I have a few drop down menu's which contain labels and values and what i would like to include in each one of those drop down menu's is an option (which will be initially selected) to send nothing when the form is submitted.
E.g. This option will have the label of 'Select Next ...' but should have no value so that it won't send anything in the query string. I'm sure everyone has come across a drop down list like this in some search form where you have certain options that act as subheadings within the drop down list. Problem is when i don't include a value in an option like that the label gets sent in the query string. How do i prevent this from happening? My objective is to have the 'Select Next ...' option send nothing at all, in other words if that option is selected it must be ignored completely as if it doesn't exist so that the results page can process the rest of the values being sent by the other controls on the search form.
Thanks for your time,
- CK