Form's format in a subroutine

Results 1 to 2 of 2

Thread: Form's format in a subroutine

  1. #1
    cheryl Guest

    Default Form's format in a subroutine

    when i pass a Form to a subroutine, it will be like :<BR>&#060;%<BR>sub testing(aForm)<BR>dim TheForm<BR>Set TheForm = Document.forms(aName)<BR>If TheForm.X.value = ...... &#060;- the "X" here<BR>..<BR>%&#062;<BR>if I use &#060;option type="text" name="test"&i ... &#062;<BR>that means i don&#039t know how many "name" are there,and when i pass the form to the testing subroutine, i don&#039t know the name of the "X" is .<BR>So is there anyway to find it out in the subroutine?<BR>

  2. #2
    Join Date
    Dec 1969

    Default Sorry, but that code is nonsense...

    You show using client side constructs in ASP source code.<BR><BR>You can&#039t do that! It will *NOT* work!<BR><BR>&#060;% ... %&#062; code *only* runs on the server.<BR><BR>document.forms is a collection that exists *only* on the client.<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