Form name is a how to submit...Help.

Results 1 to 2 of 2

Thread: Form name is a how to submit...Help.

  1. #1
    Join Date
    Dec 1969

    Default Form name is a how to submit...Help.

    I have a problem here and i hope anybody can help me.<BR>I have a table of records and each row has it own form. Therefore i need to give different name to those form so that i can submit. So I used i=i+1 for the form name and I pass the "i" to a function when i click submit. So the form name is 1, 2, 3, etc.... The problem is I can&#039;t get the form to submit. It looks like this:<BR><BR>function submitform(fname)<BR> alert fname<BR> fname.submit()<BR>end function<BR><BR>The alert fname gives me correct form name.<BR>The fname.submit won&#039;t work.<BR>Please help.....<BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default Array

    document.forms[formname].submit();<BR><BR>basic javascript - don&#039;t EVER use VBScript client-side<BR><BR>function submitform(fname) {<BR> document.forms[fname].submit();<BR>}<BR><BR>j<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