• Post Reply Bookmark Topic Watch Topic
  • New Topic

requesting values from a multiple select

 
Naadir Peterson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

how do i request all the values from a multiple select field on an html page? i have tried using getParameterValues but that returns a strings of the same value. and i cant figure out how the getParameterNames method works. i declared it as an enumeration but how do i use it to get the values..

please help!!!
thanx
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is sample code for getParameterNames

(I have typed this code here, without testing it. There could be a spelling mistake or other minor errors.)
But if your multiple select logic is correct, then it would always set the selected values in the req object and you should be able to retrive it using getParamvalues("paramname");
Hope this helps.

[ October 07, 2004: Message edited by: Jmannu gundawar ]
[ October 07, 2004: Message edited by: Jmannu gundawar ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using getParamvalues("paramname");


That should be getParameterValues("paramname");

If the values being returned are not what you except, I would investigate why that is.
[ October 07, 2004: Message edited by: Bear Bibeault ]
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's correct. Sorry for typo.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!