FORM submit doesn't work...

Results 1 to 2 of 2

Thread: FORM submit doesn't work...

  1. #1
    Keith Railton Guest

    Default FORM submit doesn't work...

    I have a button that when clicked should submit a form. Should be easy enough, right? In Netscape it just doesn&#039t work. The code looks like this:<BR><BR>&#060;input type=button value="Submit Form" onClick=<BR>"/* Do some form validation*/ document.orderForm.submit();"&#062;<BR><BR>I assume this is a bug in Netscape, is there a work-around?<BR><BR>Thanks,<BR><BR>Keith.

  2. #2
    Join Date
    Dec 1969

    Default RE: FORM submit doesn't work...

    Try this. Create your submit button like:<BR><BR>&#060;INPUT TYPE=SUBMIT VALUE="Button Title"&#062;<BR><BR>Then, in your FORM tag, add the ONSUBMIT event handler, like so:<BR><BR>&#060;FORM ACTION="someURL..." METHOD=POST ONSUBMIT="return SomeFunction();"&#062;<BR><BR>Now, SomeFunction(); should do your form processing, and return true if the form is valid and can submit; false if the form cannot submit. Hope this helps! :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts