Display results using ASP v1

Here we are telling ASP to make JavaScript the default language for this page
<% @
Language="JavaScript" %>

<HTML>
<HEAD><TITLE>
Results from the Form</TITLE></HEAD>

<BODY>

<CENTER>

<H1>Results from the Form</H1>

The Request Object retrieves the values that the client browser passed to the server during an HTTP request. This includes parameters passed from an HTML form using either the POST method or the GET method, cookies, and client certificates. The Request object also gives you access to binary data sent to the server, such as file uploads.

Below we are retrieving the entries in the "name" and "email" fields. Compare this with the Perl CGI script where we had to know if it was a GET or POST, and then have a routine to chop up and dice the information to finally arrive at the entries in the "name" and "email" fields.

********* ASP Version *********

Your Name is <% = Request("name") %> and your Email is <% = Request("email") %>.

********* Perl Version *********

Your Name is $INPUT{name} and your Email is $INPUT{email}.

</CENTER>

</BODY>
</HTML>