Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Muliple values for 1 parameter

Status
Not open for further replies.

rhull

Programmer
May 23, 2001
46
US
i have a mulitple select box so my post looks something
like.

?cboExecutives=rolf&cboExecutives=tehjile...

(so cboExecutives is used over and over for each selected)

When I use request.getParameter it only takes the first one,
(ie rolf) how do i have it loop to collect all the data?

Thanks
Ryan
 
Code:
request.getParameterValues()
It returns a String array of all values for that parameter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top