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 problem?

Status
Not open for further replies.

thewhip

Programmer
Oct 9, 1999
27
US
The following is first the code for an html page. As you see it refers to another page register.htm. That should be register.asp, but .asp does nothing. The code for the register.asp/htm is the second code listing. All it is basically supposed to do is spit the entered values back with CRLF's between the header and &quot;this is a test&quot;. The only output however is the header and &quot;this is a test&quot;. And I only get that output if I make the extension .htm instead of .asp. .asp does nothing. Below is the calling pages code, then the register.htm/asp and then the output.<br>
<br>
&lt;HTML&gt;&lt;HEAD&gt; &lt;TITLE&gt;Product Registration&lt;/TITLE&gt;&lt;/HEAD&gt;<br>
&lt;BODY&gt;<br>
&lt;H3&gt;Product Registration&lt;/H3&gt;<br>
&lt;FORM NAME=&quot;Form1&quot; METHOD=POST ACTION=&quot;Register.htm&quot;&gt;<br>
&lt;INPUT TYPE=TEXT NAME=&quot;Name&quot; VALUE=&quot;Enter Name here&quot; SIZE=30&gt;<br>
&lt;BR&gt;&lt;BR&gt;<br>
&lt;INPUT TYPE=TEXT NAME=&quot;Email&quot; VALUE=&quot;Enter Email Address here&quot; SIZE=30&gt;<br>
&lt;BR&gt;&lt;BR&gt;<br>
&lt;INPUT TYPE=TEXT NAME=&quot;ID&quot; VALUE=&quot;Enter Product ID # here&quot; SIZE=30&gt;<br>
      &lt;INPUT TYPE=&quot;submit&quot; name=&quot;submit1&quot; value=&quot;Submit&quot;&gt;<br>
&lt;BR&gt;<br>
&lt;/FORM&gt;&lt;/BODY&gt;&lt;/HTML&gt;<br>
<br>
<br>
<br>
&lt;HTML&gt; &lt;HEAD&gt; &lt;TITLE&gt;Registration Complete&lt;/TITLE&gt;&lt;/HEAD&gt;<br>
&lt;BODY&gt;<br>
&lt;H3&gt;Registration Complete&lt;/H3&gt;<br>
&lt;%<br>
Response.Write Request.Form(&quot;Name&quot;)<br>
Response.Write chr(13) & chr(10)<br>
Response.Write Request.Form(&quot;Email&quot;)<br>
Response.Write chr(13) & chr(10)<br>
Response.Write Request.Form(&quot;ID&quot;)<br>
Response.Write chr(13) & chr(10)<br>
%&gt;<br>
THIS IS A TEST<br>
&lt;/BODY&gt;&lt;/HTML&gt;<br>
<br>
<br>
<br>
<br>
Registration Complete<br>
THIS IS A TEST <br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top