name problems

Results 1 to 2 of 2

Thread: name problems

  1. #1
    Join Date
    Dec 1969

    Default name problems

    On one page I have a loop which adds a hidden form field on each pass with the value coming from an array. <BR><BR>&#060;input type="hidden" name="prefspec&#060;%=speccount%&#062;" value="&#060;%=apref(iloop)%&#062;"&#062;<BR><BR>T his works nicely but when I need to access these fields on the next page, I can&#039t seem to get it.<BR><BR>for intcounter = 1 to (speccount-1)<BR>prefspecID=request.form("prefspec &#039plus what ever intcounter is&#039")<BR>I don&#039t know any way to write out the name in request.form. <BR>I thought I could use <BR>prefspec=request.form("prefspec & intcounter")<BR>but it isn&#039t working.<BR><BR>Anyone know how to do this?<BR><BR>Thanks for your help<BR>Howard<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: name problems

    You got it, save one syntax error. Use:<BR><BR>prefspec = Request.Form("prefspec" & intcounter)<BR><BR>Notice the different placement of the quotes.

Posting Permissions

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