<% '******************************************************* '* ASP 101 Sample Code - http://www.asp101.com/ * '* * '* This code is made available as a service to our * '* visitors and is provided strictly for the * '* purpose of illustration. * '* * '* http://www.asp101.com/samples/license.asp * '* * '* Please direct all inquiries to webmaster@asp101.com * '******************************************************* %>



<% If Request.QueryString("Text") <> "" Then %> The text in the box was "<%= Request.QueryString("Text") %>"
It looks like you used "get" to send it.

Using "get" to pass information sends the information appended to the request for the processing page. It tends to be simpler and you can troubleshoot any problems simply by looking at the address bar in your browser since all values passed are displayed there. This is also the primary weakness of this method. The data being passed is visible and is limited in size to the maximum length of a request string. <% End If %> <% If Request.Form("Text") <> "" Then %> The text in the box was "<%= Request.Form("Text") %>"
It looks like you used "post" to send it.

Using "post" to pass information sends the information embedded in a header during the request for the processing page. It's main advantage is that you can send larger amounts of information. It also doesn't make that information visible in the address bar of the browser which is nice if you are using the "hidden" input type. The value of this type is still readily available to the user by using view source, but the average user won't see it or be confused by any information you may need to pass from your form for processing. <% End If %>