Home Answers Viewqa HTML more Submit buttons in the same form

 
 


samar
more Submit buttons in the same form
1 Answer(s)      2 years and 6 months ago
Posted in : HTML

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 Pages:
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
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
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
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
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
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
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
submit a form
submit a form  How can we submit a form without a submit button
Submit Your Article
we have created online form to easily submit your articles. Please follow... in response to one of our posts or submit your article through this form...; Submit Article in Bulk Do you have more than one article to submit
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
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
Submit Articles Free - Free Resources For Articles Submission
to all people. That insidious form of self deception falls in the same category... for greatest result. Now we have created online form to easily submit your... Submit Articles Free - Free Resources For Articles Submission
Handling multiple buttons in HTML Form
Handling multiple buttons in HTML Form  How to handle Handling multiple buttons in HTML Form
Submit Articles for Free
at it this way - What good is one more place to submit your articles, unless... is one more place to submit your articles, unless it makes your life easier... your rank in search engines. Fill out the following form to submit articles
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
Struts application two submit button
Struts application two submit button  Hai, i'm new in struts..." %> <html:form action="/login" method="post" styleClass="javachap...; </li> <li class="buttons"> <
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
Mouse Buttons, Modifier Keys
Java NotesMouse Buttons, Modifier Keys Mouse Buttons. Java supports up to three mouse buttons. Even if your mouse doesn't have three separate buttons, you can simulate some of the buttons by pressing modifier keys when pressing
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'
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" /> <
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
load more with jquery
load more with jquery  i am using jquery to loadmore "posts" from my... box its is going to display php posts and after that when i click on load more...); $('#loadmorebutton').html('Load More
Submit Articles
the Article Submission form to submit the article for publication. Benefits... Submit Articles       Submit Articles at RoseIndia.net and Generate huge traffic and publicity
Submit comments in database when user clicks on submit button
Submit comments in database when user clicks on submit button... to show how to submit comments from a jsp page and insert it to the MySql database when user clicks the submit button of the page. Create a database: First
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
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>
how to display a table and buttons in swings - Java Beginners
how to display a table and buttons in swings  Hi frends, Actually i want to display a table during runtime and at the same time i also want to add different buttons below this displayed table using swings.....please can any
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
Radio Buttons in DB Very Urgent - JSP-Servlet
Radio Buttons in DB Very Urgent  Respected Sir/Madam, I am... in the database.Here I need Radio Buttons added dynamically for each Row. When I click the corresponding Radio Button and Submit,The Emp ID and Emp Name must
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
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
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
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
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
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
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
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
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
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
java buttons - Swing AWT
java buttons  There are 3 buttons in a window....A,B,C.If a user clicks button A ,a clue is given to him leading to button B.After the user clicks both A and B,he clicks C which is a submit button.After this both A and B should
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
html form - Java Beginners
html form  Hi, I wnt to design a form with more than one action in submit button.thanks. regards, sakthi  Hi friend, You specify your main requirement of form with more then one action. Thanks
JSTL : Submit Form TextField
JSTL : Submit Form TextField     ... 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. On submission
Buttons with Icons
Java: Buttons with Icons You can create buttons that show text, icons (images), or both.   In this example you will learn how to create Buttons...; The two supported image formats are GIF and JPEG, although support for more image
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
JavaScript submit method
submit button  Submitting form programmatically using JavaScript. ... the submit() method we have created a form named "frm". When we click...;script> tags. This function at last submits the form by calling submit

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.