Advertisement

05.16.2008 at 06:16AM PDT, ID: 23408114
[x]
Attachment Details

Multiple buttons in same form return wrong value in IE

Asked by tbboyett in Hypertext Markup Language (HTML), Java Programming Language, Java Servlets

I have a form with three buttons all with the same name but different value, and the action of the form calls a servlet where i check to see which one was selected.  

This works great with Firefox and Safari, but does not work with IE.  Instead IE returns the display name "Select" which is what the first button says in the html page.

Can anyone help me solve this problem?  all help greatly appreciated.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
// the three buttons
<button type="submit" name="process" value="select">Select</button>
<button type="submit" name="process" value="update">Update</button>
<button type="submit" name="process" value="pick">Pick</button>
 
// the servlet outputs which button was selected (except in IE)
button = request.getParameter("process");
out.println("Button: " + button);
[+][-]05.16.2008 at 06:22AM PDT, ID: 21582420

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.16.2008 at 06:22AM PDT, ID: 21582418

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), Java Programming Language, Java Servlets
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.16.2008 at 06:35AM PDT, ID: 21582526

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 06:56AM PDT, ID: 21582657

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 07:54AM PDT, ID: 21583252

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2008 at 03:38PM PDT, ID: 21590967

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.18.2008 at 04:49AM PDT, ID: 21592356

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628