PDA

Click to See Complete Forum and Search --> : Hidden Fields


jesus4u
Mar 2nd, 2001, 07:56 AM
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?

sebs
Mar 5th, 2001, 11:39 AM
<%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