Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hidden Input Field problems

Status
Not open for further replies.

Telsa

Programmer
Jun 20, 2000
393
US
I've created a hidden field to transfer the customer ID to the next page. It was working yesterday. But doesn't seem to be working today!

Here is the input code:
<input type=&quot;hidden&quot; name=&quot;CustID&quot; value=&quot;<% Request.form(&quot;CustID&quot;) %>&quot;>
<input type=&quot;button&quot; value=&quot;Add to Database&quot; name=&quot;btnSubmit&quot;></td>

But when the next page opens, CustID doesn't seem to follow even though the rest of the data in the other fields do.

Any thoughts???
Mary :)

Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
 
Aren't you missing an equal-sign before the Resquest.Form?
<input type=&quot;hidden&quot; name=&quot;CustID&quot; value=&quot;<%=Request.form(&quot;CustID&quot;) %>&quot;>

I never know about those Double qoutes inside double-quotes so I avoid them
Try also changing
<input type=&quot;hidden&quot; name=&quot;CustID&quot; value=&quot;<%=Request.form(&quot;CustID&quot;) %>&quot;>
TO
<input type=&quot;hidden&quot; name=&quot;CustID&quot; value=&quot;
<%Response.Write Request.form(&quot;CustID&quot;) %>
&quot;>
 
Augh! Okay, got it!

Thanks! Mary :)

Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top