Reply to associate a hidden input to (chosen) select option in form?

Your name:

Reply:


Posted by Quasimido CSS on 11/18/45 11:31

<form action="http://www.mmmm.org/cgi-bin/search" method="get">
<input name="yyyyyy" value="1" type="hidden">
<input name="query" size="50" value="">
<select name="zzzzzz">
<option value="888">YOU-WANT-THIS</option>
<option value="899" selected="selected">OR-KEEP-THIS</option>
<option value="999">OR-CHOOSE-THIS</option>
</select>
</form>

i'd like
to convert input name="yyyyyy" to a select name="yyyyyyy" (or whatever that can have
more than one value assigned) that is
1 also chosen when user chooses the select name="zzzzzz" option.
2 still hidden (this isn't terribly important, though)

so this
<input name="yyyyyy" value="1" type="hidden">

would instead look something like
<select name="yyyyyy">
<option value="1">1 but you can't see this</option>
<option value="2">2 but you can't see this</option>
<option value="3">3 but you can't see this</option>
</select>

except it would actually look like whatever would work :-)

unless this is impossible? or possible only with script?

------
googling the likes of
http://groups.google.com/groups?q=select+name+options+%7Etied+form+html
associated multiple two-options
gave optgroup or less likely answers

tia...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация