Hi, I have a problem in handling values of checkboxes.
If I write for exampple
and then on some other page
String whatToDo = request.getParameter("action");
then everything is OK, in whatToDo is the value DELETE.
But If I have
How could I get all the values of the selected checboxes?
Thank yo
Yes, this is one possible way, but in ASP I can do something like this
For i=1 To Request.QueryString("name").Count to get the values.
Or in PHP I can write
and then
for ($i=0; $i
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 8:59 PM
Subject: Re: getting paramater names from checkboxes
st.getParameters("action");
>
> multiple checkbaoxes return multiple parameters
>
> -Original Message-
> From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: getting paramater names from chec
I was faster:-))
Thanks anyway, now everything is OK.
Martin
- Original Message -
From: "Andi Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 9:30 PM
Subject: Re: getting paramater names from checkboxes
> I am sorry it should look like this:
>
> Strin
I got it!!
The name of the function is getParameterValues and not getParameters.
So I have to use
String[] whatToDo = request.getParameterValues("action");
Thank you very much, You inspired me!
Thanks
Martin
- Original Message -
From: "Andi Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTE
Hi,
how could I get the content and the name of the file, when I use the input
form element with the type=file?
Either using the request object, or using the java bean to handle the form
with the directive (rather)
Thanks a lot,
Martin