HOW CAN WE SUBMIT A FORM WITHOUT A SUBMIT BUTTON?

Sanjay Sharma

Total Post:42

Points:210
Posted by  Sanjay Sharma
 1438  View(s)
Ratings:
Rate this:
  1. Sanjay Sharma

    Post:42

    Points:210
    How can we submit a form without a submit button?

    If you don't want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the URL of the link. For example:

    <a href="javascript: document.myformsample.submit();">Submit</a>


    A form can be submitted in various ways without using submit button.

    Submitting a form by clicking a link
    Submitting a form by selecting an option from drop down box with the invocation of onChange event
    Using java script : document.form.submit();
    Using header(“location:page.php”);

      Modified On Apr-04-2016 12:26:02 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!