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

writing values with spaces to variables

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
I have a textbox in html that retrieves an address (number and street). It gets passed in the querystring ok, but when I try to write it to a variable:
dim address
address = request.querystring("txtAddress")
response.write address

it only brings back the number.
How do I convince it not to stop at the space?

Thanks.
 
i gather the vairable is produced from a form with the method post if so use

dim address
address=request.form("txtaddress")
response.write address

if that dont work. change the last line to

%><% =address %>

this should then work
 
this is just a bit of it. I hope it helps

<form name=&quot;frmProfile&quot; id=&quot;form1&quot; onSubmit=&quot;return isReady(this)&quot; method=&quot;get&quot; action=&quot;validateNewUser.asp&quot;>
<td>Address:</td>
<td><input id=&quot;text3&quot; name=&quot;txtAddress&quot;></td></tr>
<input type=&quot;submit&quot; value=&quot;Submit&quot; id=&quot;submit1&quot; name=&quot;btnSubmit&quot;>
</form>


this is the actual code to write the address:
Response.Write &quot;<td><INPUT type='text' id=text3 name='txtAddress' value=&quot; & address & &quot;>

as you can see, krappleby025, the method is get, and querystring was right.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top