PDA

View Full Version : Select box params


tom123
08-17-2006, 02:36 PM
Is there any way of extracting all values from a select box using cgi params?


<select class="SelectBox" name="Products" multiple="multiple" id="Products" size="15" tabindex="1" ondbclick="populate('document.frmAddCat','Products','Products_Selected')">
[% FOREACH CODE = PRODUCT_CODES %]
<option name="Products" value="[% CODE %]">[% CODE %]</option>
[% END %]
</select>

If they are not selected no values are passed!

Please help.

Thanks

tom123
08-17-2006, 05:48 PM
Its ok guys. figured it out eventually!

Need to use hidden fields and bit of javascript to store the select box values.

DELOCH
08-17-2006, 05:49 PM
Please do not double post ;)

tom123
08-18-2006, 04:58 PM
what?
Ive havnt double posted

DELOCH
08-19-2006, 02:46 AM
Message1:
Is there any way of extracting all values from a select box using cgi params?


<select class="SelectBox" name="Products" multiple="multiple" id="Products" size="15" tabindex="1" ondbclick="populate('document.frmAddCat','Products','Products_Selected')">
[% FOREACH CODE = PRODUCT_CODES %]
<option name="Products" value="[% CODE %]">[% CODE %]</option>
[% END %]
</select>

If they are not selected no values are passed!

Please help.

Thanks

Message 2:

Its ok guys. figured it out eventually!

Need to use hidden fields and bit of javascript to store the select box values.



This is called Double posting or Posting 2 times or more in a row ;)

FishMonger
08-19-2006, 03:29 AM
DELOCH,

No, that's not the definition of double posting.

Double posting would be if Tom had posted the same question (message 1) multiple times in multiple topic areas (or within the same topic area). Some people go a step further and say it includes posting the same question in other online forums. I don't subscribe to that interpretation. In this case, tom's 2nd message is informing us that he worked out the solution himself. It would have been nice if he prvided more details on the solution so that others can benifit, but he's not obligated to do so.

You, however, are double posting. Your latest question http://codingforums.com/forumdisplay.php?f=5 was answered by me in a prior question of yours. http://codingforums.com/showthread.php?t=92723

DELOCH
08-19-2006, 04:53 AM
I never double post when knowing so, if I knew I woud not

tom123
08-19-2006, 03:53 PM
Fishmonger is right deloch, thats not double posting.
I was simple informing people i figured it out,
Therefore not wasting their time on a topic already resolved!