Click to See Complete Forum and Search --> : Sending back form information entered by user to previous page!


asadikhan
08-31-2003, 03:24 PM
Hi, I am trying to send back information from a page to the previous (user form filled info). So lets say, the information is going from page B back to page A. I create hidden inputs for the values from page B (I tested printing them, and it prints fine on page B, i.e. "St. Bernard's" would print "St. Bernard's" on page B; "New York" would print "New York" etc.).

Now I send this information back to page A (user hits a RETURN button on page B), and on page A I retrieve it in an input box using

... value=<%=Server.HTMLEncode(Request("city"))%> ...

But this unfortunately only gives me "St." and the "Bernard's" is missing. (Or York would be missing in case of New York).

What am I doing wrong? Thanks!

txmail
09-07-2003, 12:04 AM
the way I do this wiht my paes is by cookies, in the value i just put <% request.cookies("somecookie") %> or you could pass it back by querystring and use <% request.querystring("value") %> if it is not too much data.