Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP display of information

Posted on 1998-10-05
3
Medium Priority
?
207 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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.…

916 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