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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input type value

Status
Not open for further replies.

crxcte1

Programmer
Joined
May 22, 2003
Messages
74
Location
US
I'm trying to pass a value in the input as a hidden type. The value has a space in it like "Dallas TX"

<input type=&quot;hidden&quot; value=<%=vRegion%> name=&quot;Region&quot;>

When I pick it up with request.form only &quot;Dallas&quot; is found. I've tried the following in the input

value=<%=&quot;vRegion&quot;%>
value=<%=[vRegion]%>
value=<%=(vRegion)%>
value=<%='vRegion'%>
value=<%='&quot; & vRegion & &quot;'%>

any ideas on how to pick up both works &quot;Dallas TX&quot;?
 
Place parentheses around the variable.

value=&quot;<%=vRegion%>&quot;

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
--Douglas Adams
 
Thanks and have a great day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top