Print Page | Close Window

I am A complete Biggener, BUT Pleeez Help

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5742
Printed Date: 31 March 2026 at 4:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: I am A complete Biggener, BUT Pleeez Help
Posted By: BestPakistan
Subject: I am A complete Biggener, BUT Pleeez Help
Date Posted: 14 September 2003 at 4:51am

Guys, I am new to ASP, I'm trying to learn it my self, if you can help me, I'm a complete Biggener

I actuallly wanted to make a page in which i want to read a variable from the address bar or VIA an HTML form, for instance, if somebody writes, http://www.friendspoint.tk/desplaypics.asp?id=4 - http://www.friendspoint.tk/desplaypics.asp?id=4  then it opens 4.jpg, in the page, where ever i want to place it, i tried this but it never worked

<%option explicit %>

<%

mymsg = request("msg")

response.write "<html><head><title>My ASP</title></head><body>This is My frist asp Page.<br>You Entered:" & mymsg & "</body></html>"

%>

 



-------------
http://www.friendspoint.tk">">



Replies:
Posted By: michael
Date Posted: 14 September 2003 at 9:07am
I would not use the request object without a method so use request.querystring or request.form
Then, if your make is somehting like ....page.asp?msg=hello your script should work, check the case though. Also as you are using Option Explicit you need to dim your var first so put a
dim mymsg
before populating the variable.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: mapnapkin
Date Posted: 14 September 2003 at 7:01pm

do you want to display the JPG or the text line

if the JPG then
-------------------------------
<html>
<head>
<title>My ASP</title>
</head>
<body>
This is My frist asp Page.<br>
You Entered:<br><img src="<%Request.QueryString("id")%>.jpg">
</body>
</html>
------------------------------

if you want to display the text then use a form and then

-----------------------------------------
<html>
<head>
<title>My ASP</title>
</head>
<body>This is My frist asp Page.<br>
You Entered:<%Response.Write(Request.Form("id"))%>
</body>
</html>
----------------------------------------

something like that should do it




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net