Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML more Submit buttons in the same form
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
more Submit buttons in the same form
1 Answer(s)      4 years ago
Posted in : HTML


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


Advertisement
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
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
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
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
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'
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
PHP HTML Form Submit Button
Topic : HTML FORM SUBMIT BUTTON Part - 4 The another part which is important... in Html is used to submit form data to the page mentioned in the ACTION attribute... on the same page that is basic_form.php . To submit the information inputted by the user
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
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
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
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
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
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.   Visit Services section to submit your project details
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
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
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>
Disabling submit button using jQuery
be more useful to do so on form submission: $('form').submit(function... - is there any way or approach to disable client side form's "Submit" button. Please give code also.   For all submit buttons, via JQuery, it'd
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
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" /> <
 

 

 

DMCA.com