Solved

ASP display of information

Posted on 1998-10-05
3
146 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
Comment Utility
I tryed this files on IIS4 and they are working. Check the name of the asp file.
0
 

Expert Comment

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

Accepted Solution

by:
MasseyM earned 50 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
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.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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)

762 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now