Results 1 to 4 of 4

Thread: How to submit form without "Submit Button"?

  1. #1
    Join Date
    Apr 2009
    Posts
    91

    How to submit form without "Submit Button"?

    I just wanted to develop an application where once the details on the form has been field by the user it would automatically submit the form without using "Submit Button" I come across such things on some of PHP based websites but do not understand their logic behind this.

    Please help.

  2. #2
    Join Date
    Dec 2008
    Posts
    202

    Re: How to submit form without "Submit Button"?

    When you want a form that can be submitted without requiring the rather prominent submit button in that case you need to submit the form when the checkbox is checked. If it is like this then your form will automatically get submitted. And if you wanted to develop such application on your form then you must have the knowledge of CGI program. This will be possible and most convenient using CGI program.

  3. #3
    Join Date
    Mar 2008
    Posts
    258

    Re: How to submit form without "Submit Button"?

    I think if you will add the following method in your HTML head of your program and write the all other functions you would like to add will solve your problem. Please check the following and put it in your code.
    Code:
    function nav()
       {
       var w = document.myform.mylist.selectedIndex;
       var url_add = document.myform.mylist.options[w].value;
       window.location.href = url_add;
       }

  4. #4
    Join Date
    Mar 2008
    Posts
    227

    Re: How to submit form without "Submit Button"?

    You can submit a form without a submit button, but it relies on javascript, which is a bad thing. How will you keep your pages working for those without JavaScript enabled? leave the submit button and use javascript in the body onload event to set style display to none. That way the button is only visible if javascript is off.

    Anyway, to submit the first form on your page, you can use something like this:

    <a href="#" onclick="document.forms[0].submit(); return false;">submit</a>

Similar Threads

  1. How to Submit a Form Using JavaScript?
    By Damien25 in forum Software Development
    Replies: 4
    Last Post: 07-02-2010, 07:05 AM
  2. Problem of html form with multiple submit buttons
    By ASHER in forum Software Development
    Replies: 4
    Last Post: 20-10-2009, 05:31 PM
  3. Frontpage form submit return 404 Not Found error
    By dalsandhu in forum Technology & Internet
    Replies: 3
    Last Post: 06-07-2009, 03:37 PM
  4. Several submit buttons in the same form ?
    By Wiro in forum Software Development
    Replies: 5
    Last Post: 14-02-2009, 10:29 PM
  5. Problem Submit Form in Firefox [javascript]
    By Swetlano in forum Software Development
    Replies: 0
    Last Post: 09-02-2009, 11:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,870,050.49001 seconds with 17 queries