[Nitro] Select default value.

George Moschovitis george.moschovitis at gmail.com
Thu Sep 6 08:29:04 EDT 2007


Dear devs,

I would like your opinion on this problem, lets say I have this select
field:

<form>
<select name="gender">
  <option value="??">--- No selection</option>
  <option value="1">Male</option>
  <option value="2">Femal</option>
</select>

I would like to allocate a 'special' value to the default options, that
Nitro will 'ignore'. Ie if the user does not select
any gender,

request["gender"] == nil

and not

request["gender"] == "??" # <-- the special value

any ideas, suggestions?

-g.

-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070906/12030266/attachment.html 


More information about the Nitro-general mailing list