form submission

Results 1 to 2 of 2

Thread: form submission

  1. #1
    Pankaj Jain Guest

    Default form submission

    pls tell me how to use a var in submitting the form <BR><BR>i want PROD_SEARCH to be the variable form_name, pls tell me the syntax . i&#039;m getting the name of the form with "alert(form_name)" <BR><BR>but missing the syntax to replace PROD_SEARCH by a variable <BR><BR>function sel_change(form_name) <BR>{ <BR>document.PROD_SEARCH.submit(); <BR>}

  2. #2
    Jon Pickerill Guest

    Default RE: form submission

    &nbsp;<BR>Its important to pass the formname in single quotes !!!<BR>(else PROD_SEARCH becomes an object rather than a string<BR>ie,<BR><BR>&#060;input TYPE=BUTTON ONCLICK="postme(&#039;PROD_SEARCH&#039;)"&#062;&#0 60;/input&#062;<BR><BR>THEN,<BR><BR>&#060;script Language="Javascript"&#062;<BR>function postme(theform){<BR>document.all(theform).submit<B R>}<BR>&#060;/SCRIPT&#062;<BR><BR>Hope this Helps U ??,<BR><BR>JON<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