Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP display of information

Posted on 1998-10-05
3
Medium Priority
?
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

715 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