Forums
This topic is locked
Request Syntax Display all if unselected...
Posted 22 Feb 2005 06:39:31
1
has voted
22 Feb 2005 06:39:31 chang tomchang2 posted:
Hi, Sorry for this dummy question, but i can't find any working answer.
i got a very simple form which allows to choose people according to the color of their hair (blond, brunette, etc...) i'd like to display the whole listing in case of the color is not precised.
With Dreamweaver MX, I created this <option value="%" selected> in a POST form. All but the result page is empty...even if it works when i choose Blonds hairs as example.
If some one know how to help me, i just use Dreamweaver Features as i Think they might work.
Thanks for your help.
Thomas
Replies
Replied 22 Feb 2005 09:10:25
22 Feb 2005 09:10:25 Chris Charlton replied:
The easy way out is using an <i>if statement</i> when the form processes. Also, I'd use a <i>value=""</i> (empty) for clarity, unless you're from an ASP background, then the % probably makes more sense.
Hope that helps.
~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Hope that helps.
~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>