more Submit buttons in the same form

more Submit buttons in the same form

Can I have two or more Submit buttons in the same form?

View Answers

November 2, 2010 at 3:43 PM

Hi,

Yes. This is part of HTML 2.0 Forms support (some early browsers did not support it, but browser coverage is now excellent).

The submit buttons must have a NAME attribute. The optional VALUE attribute can be used to specify different text for the different submit buttons.

To determine which submit button was used, you need to use different values for the NAME and/or VALUE attributes. Browsers will send to the server the name=value pair of the submit button that was used. Here is an example:

<input type="submit" name="join" value="hello">
<input type="submit" name="info" value="world">

Note that if you are using image submit buttons, you need to provide different NAME attributes for them too. Also, browser behavior can be inconsistent when the form is submitted without a submit button (e.g., by hitting ENTER).

Thanks.









Related Tutorials/Questions & Answers:
more Submit buttons in the same form
more Submit buttons in the same form  Can I have two or more Submit buttons in the same form
php form having 2 submit buttons
php form having 2 submit buttons  i have a php form and some text boxes.and 2 buttons"approve" and "disapprove". when i click on approve button the data from form should go in mysql database and mail should go to appropiate
Advertisements
Two or more actions in the same form
Two or more actions in the same form  Can I have two or more actions in the same form
Multiple submit buttons in single xhtml form - Java Server Faces Questions
Multiple submit buttons in single xhtml form  Hi all, Here I am attaching the source of the page , which containig two submit buttons. Somebody suggested to keep eaxh button in different form. I am new to JSF, can anyone split
submit a form
submit a form  How can we submit a form without a submit button
disable and enable the submit buttons
disable and enable the submit buttons  i have two summit button in my form. one is disabled and other is navigating to the other page. after 3 submissions of the submit button the disabled one must be enabled and the enabled one
Ajax form submit
submit. I want quick tutorial that will help me in writing form submit code in Ajax. Thanks   Hi, Read jQuery 'submit' form event tutorial. This tutorial teaches you how to submit form using jQuery framework. Thanks
Handling multiple buttons in HTML Form
Handling multiple buttons in HTML Form  How to handle Handling multiple buttons in HTML Form
Displaying error on the Same form
Displaying error on the Same form  I want to display the errors on the same form(Top of the form) after validation. I am used Div element and Table...; } </script> <form method="post" onsubmit="return validate();" action
How can we submit a form without a submit button?
How can we submit a form without a submit button?  How can we submit a form without a submit button
PHP HTML Form Submit Button
Topic : HTML FORM SUBMIT BUTTON Part - 4 The another part which is important.... The Submit button in Html is used to submit form data to the page mentioned... the information retrieve on the same page that is basic_form.php . To submit
Facing Problem with submit and cancel button in same page - Struts
Facing Problem with submit and cancel button in same page  Hi, can u please help me out.I have placed submit and cancel button in the jsp page but i am unable to know how to write the form and action classes   Hi
Multiple submit nuttons in single xhtml form - Java Server Faces Questions
Multiple submit nuttons in single xhtml form  Hi, I am facing problem in my JSF application, where in single page , we have two submit buttons... : and in form2 have submit buton name submittwo : If you have any more
jQuery 'submit' form event
jQuery 'submit' form event In this tutorial, we will discuss about the  'submit' form event of jQuery. In this example... when "submit" event return 'true' to 'form'
Get form value in same page - JSP-Servlet
Get form value in same page  Hello friends, Can we get a form field value in the same to be processed in java coding...-registration-form-using-jsp.shtml Thanks
differences between GET and POST methods in form submit
differences between GET and POST methods in form submit  What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
How to save form fields into the MySql Database without submit button in jsp?
How to save form fields into the MySql Database without submit button in jsp?  I want to store user inputs into the database using javasccript or ajax or jqury but without submit button. Form Contains three fields
Buttons
Buttons  I have created a web page with radio button group with two radio buttons for accepting the home appliances categories,Kitchen appliances and other appliances.I want to check for the appliance chosen when the required
insertin form data into databse and blank all form field when click on submit button
insertin form data into databse and blank all form field when click on submit button  sir, i useing the jsp. i want insert form data into Ms-Access database when click on submit button and blank all form field after inserting
form submit in ajax
Submit Tag (Form Tag) Example
Submit Tag (Form Tag) Example       In this section, we are going to describe the submit tag. The submit tag is a UI... with the form tag to provide asynchronous form submissions. The submit can have three
Action Submit Html
Action Submit Html       Action Submit in Html is used to submit a form, When a user clicks on a submit button, the form is sent to the specific address
redirecting a login authenticated form to a form to be displayed on the same page from where the login authentication has taken place.
redirecting a login authenticated form to a form to be displayed on the same...;/script> <form name="form" method="post" action="http://localhost...;/td><td><input type="submit" value="Submit"></td></tr>
JSTL : Submit Form TextField
JSTL : Submit Form TextField     ... how we can retrieve multiple values from the form.  Firstly we have to make one jsp page which contains a form in which we will enter the values
Disabling submit button using jQuery
; }); Or it might be more useful to do so on form submission: $('form').submit... - is there any way or approach to disable client side form's "Submit" button. Please give code also.ADS_TO_REPLACE_1   For all submit buttons, via JQuery
i want to retriev and update in same form but its not working pls help....
i want to retriev and update in same form but its not working pls help.... ... id="contentarea"> <form name="viewpart" action="viewparticularappli.jsp..." name="refno" /></td><td><input type="submit" name="b1
Submit a Request for a Project to be done
Fill this form to Submit a Request for a Project to be done. Our development team will shortly contact you.  ADS_TO_REPLACE_1 Visit Services section to submit your project details
how to restrict user against marking same event more than one times - JSP-Servlet
how to restrict user against marking same event more than one times ... giving multiple time same test. Is it possible that once user marked particular test, the same test should not display them once he/she will log in next time
retrieve data from database in java swing form using prev n next buttons
retrieve data from database in java swing form using prev n next buttons  i have a database having columns id(int),path(text),width(int),height(int),avdRed(float),avgGreen(float),avgBlue(float) i have to retrieve all the fields
retrieve data from database in java swing form using prev n next buttons
retrieve data from database in java swing form using prev n next buttons  i have a database having columns id(int),path(text),width(int),height(int),avdRed(float),avgGreen(float),avgBlue(float) i have to retrieve all the fields
multiple submits, single form.
multiple submits, single form.  is it possible to use multiple submit buttons in a single form?   Thank you
HTML custom buttons
HTML custom buttons  How can I make a form with custom buttons
inserting data from radio buttons to database - JSP-Servlet
of radio buttons. the feedback.jsp should look like same as follows: Please...inserting data from radio buttons to database  hi, my problem is as follows: i am creating a feedback form of a college. this feedback form
submit button
submit button  <p>hi I am trying to insert record in database...;body> <form method="post" action="Insert.doPost"> Enter...; <input type="submit" value="Insert" name="login" /> <
how can i display a editable result of form?
display on same result div which is a part of form and in that div i have 2 buttons... to display form result in same page i have alredy created a hidden div which...how can i display a editable result of form?  how can i display
JSP Submit Button
JSP Submit Button  Sir, I have a JSP page with 2 Submit button, both calls doPost method of same servlet. If I click any submit button the text box value get refreshed and set to null or blank, that should not happen. Plz help
Submit Articles
created online form to easily submit your articles. Please follow the following... is complete your can use the Article Submission form to submit the article... Submit Articles      
Submit Your Article
result. Now we have created online form to easily submit your articles....    Submit Article in Bulk Do you have more than one... the submission form over and over again? Well, we've got good news. You can now submit
form
form   Can I prevent a form from being submitted again
radio buttons
radio buttons  write a program to create an applet button which has a list of radio buttons with titles of various colours.set the background colour... has a list of radio buttons with titles of various colors and a button
add Buttons in JavaScript
add Buttons in JavaScript  How to add Buttons in JavaScript
Radio Buttons - Java Beginners
Radio Buttons  Hello Sir, How to create the code for the password recovery page(like forgot gmail password question and answer page)using the radion buttons in display the same page in jsp.I need only how to make the question
creating a feedback form - JSP-Servlet
completes all the selection of radio buttons and he clicks on the SUBMIT FEEDBACK... i am refining this problem as follows: i am creating a feedback form of a college. this feedback form will ask some question. now depending upon those
Need to retain the values on submiting the form - XML
Need to retain the values on submiting the form  I have created the form using XML and XSL, with textbox,checkbox,textarea and two button submit and RESET. how to retain the values in the same page on clicking submit
Multiple Forms in JSP
;    The form tag creates a form for user input. A form can contain checkboxes, textfields, radio- buttons and many more. Forms are used... of the form tag. For the browser it is important to know where to send
Third Normal Form (1NF)
Third Normal Form (1NF)       Third Normal Form (1NF) The Third Normal Form has one more...; A. It should meet all the requirements of the second normal form.     
buttons in netbeans,java
buttons in netbeans,java  respected sir, i would like to known how to make coding on a button while working on netbeans, so that a new window...="submit" value="open new window" onclick="window.open('xyz.html', 'null', 'width
ModuleNotFoundError: No module named 'buttons'
ModuleNotFoundError: No module named 'buttons'  Hi, My Python... 'buttons' How to remove the ModuleNotFoundError: No module named 'buttons... to install padas library. You can install buttons python with following command
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
On Click on Submit Button Display Data on Orderlist
On Click on Submit Button Display Data on Orderlist  How can retreive data from database on orderlist on Click on submit Button of same page

Ads