Solved

ASP display of information

Posted on 1998-10-05
3
179 Views
Last Modified: 2010-04-09
See the following code....

It came from a book and put the .htm into the default
www.productlist.com directory and put the following .asp in the /asp directory....   The funny question is can you tell me why this does not work....?

<html>

<head>
<title>The Form</title>
</head>

<body>

<h3>The Form </h3>

<form NAME="Form1" METHOD="POST" ACTION="http://www.productlist.com/asp/List7_3.asp">
  <p><input TYPE="TEXT" NAME="Text1" VALUE="Enter Text here" SIZE="20"> </p>
  <hr>
  <p><input TYPE="RADIO" NAME="Radio1" VALUE="Yes">Yes <br>
  <input TYPE="RADIO" NAME="Radio1" VALUE="No">No <br>
  </p>
  <hr>
  <p><select NAME="Select1" size="1">
    <option> Texas </option>
    <option> Colorado </option>
    <option> Washington </option>
  </select> <textarea NAME="TextArea1" SIZE="10,10" rows="1" cols="20"> Text Area
</textarea><input TYPE="SUBMIT" NAME="Submit1" VALUE="Submit"> </p>
</form>
</body>
</html>

Now for the .asp.........................................


<html>

<head>
<title>The Active Script Form Object</title>
</head>

<body>

<h3>The Active Script Form Object</h3>
<%
Response.Write Request.Form("Text1")
Response.Write chr(13) & chr(10)

Response.Write Request.Form("Radio1")
Response.Write chr(13) & chr(10)

Response.Write Request.Form("Select1")
Response.Write chr(13) & chr(10)

Response.Write Request.Form("TextArea1")
Response.Write chr(13) & chr(10)

%>
</body>
</html>
0
Comment
Question by:optical
  • 2
3 Comments
 

Expert Comment

by:krassiB
ID: 1838390
I tryed this files on IIS4 and they are working. Check the name of the asp file.
0
 

Expert Comment

by:krassiB
ID: 1838391
Make shure also that you can execute scripts in subdirectory "ASP"
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 50 total points
ID: 1838392
The code for both is okay... Two things:
1) rather than useing the chr(10)... items, just use Response.Write "<BR>"  that will put the line break in the HTML for you...
2) What is the error that you are receiving?  
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to debug htl and js pages 8 39
html Uncheck Checkbox 2 25
Obtaining data on ASP 8 29
html border input line 7 14
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question