Results 1 to 2 of 2

Thread: Hidden Fields

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Unhappy

    This is really bugging me out!

    I use this code to request info from the previous form where a user signed up: On this page they are giving me more information.

    <%

    Dim Reg1FirstName
    Reg1FirstName=request.form("txtReg1FirstName")

    %>
    'Then I place the new variable into hidden fields and the values are there if you view the source and check through the browser.
    <html>
    <input type="hidden" name="Reg1FirstName" value="<%=Reg1FirstName%>">

    THen the user presses submit and moves to the next page where I am trying to display to them the information form the first form into text boxes while grabbing the info into hidden fields like so.
    Code:
    <%Dim Reg1FirstName, FirstName
    Reg1FirstName=request.form("txtReg1FirstName")
    FirstName=request.form("txtFirstName")
    %>

    <html>
    <input type="hidden" name="Reg1FirstName" value="<%=%>"> ' NOW the value disappears!

    'and this info appears

    <input type="hidden" name="FN" value="<%=FirstName%>">

    When I do a view source the

    <input type="hidden" name="Reg1FirstName" value="<%=Reg1FirstName%>">

    is Empty but the new hidden input from the previous form is there.


    What the HECK is going on here?

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    here's the problem

    <%Dim Reg1FirstName, FirstName
    Reg1FirstName=request.form("txtReg1FirstName")
    FirstName=request.form("txtFirstName")
    %>

    you use request.form("txtReg1FirstName")
    but the hidden field name is :
    Reg1FirstName, the txt is the problem

Posting Permissions

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



Click Here to Expand Forum to Full Width