Solved

ASP display of information

Posted on 1998-10-05
3
171 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link a VBS to an HTA 6 37
Why a span is lower 2 21
Could I have some help for an easy CSS change to this latest news scroller 10 18
VBScript on Html 11 20
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

831 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