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

Simple ASP question

Status
Not open for further replies.

aojonesoa

Technical User
Apr 25, 2001
40
US
If I try to fill in a text field from the previous page with a POST command, it only transfers the text before the first space. Example:

<input type=&quot;text&quot; name=&quot;Name&quot;> <!is on first page
<input type=&quot;text&quot; name=&quot;T1&quot; value=<%=Request.form(&quot;Name&quot;)%> is on 2nd page.

If I type &quot;Testing this thing&quot; into the first box, &quot;Testing&quot; is the only thing that gets transferred to the second page. Any ideas?
 
Check out Server.HTMLEncode. I &quot;think&quot; you need
Code:
<input type=&quot;text&quot; name=&quot;T1&quot; value=<%=Server.HtmlEncode(Request.form(&quot;Name&quot;))%> is on 2nd page.
It can't cost much to test.
 
Hi aojonesoa,

Here is the bug, you need to correct the 2nd page to

<input type=&quot;text&quot;
name=&quot;T1&quot;
value=&quot;<%=Request.form(&quot;Name&quot;)%>&quot;>

(with the &quot;&quot;)

hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top