form problems

Results 1 to 2 of 2

Thread: form problems

  1. #1
    bobby Guest

    Default form problems

    i have a form created from a database spread over several layers, when i am in a textfield and hit the enter button the form automatically submits , how can I disable this?

  2. #2
    Join Date
    Dec 1969

    Default nothing to do with layers...

    ...the easiest way to get around this is to *NOT* have an &#060;INPUT TYPE=Submit ...&#062; button.<BR><BR>Instead, do: <BR><BR>&#060;INPUT Type=Button Value="Submit..." onClick="this.form.submit();"&#062;<BR><BR>or, if you want to do form validation, <BR><BR>&#060;INPUT Type=Button Value="Submit..." onClick="if ( validate() ) this.form.submit();"&#062;<BR><BR>Now, since there isn&#039;t any SUBMIT button, the ENTER key does nothing.<BR><BR>

Posting Permissions

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