Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - I am A complete Biggener, BUT Pleeez Help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

I am A complete Biggener, BUT Pleeez Help

 Post Reply Post Reply
Author
BestPakistan View Drop Down
Newbie
Newbie


Joined: 14 September 2003
Location: Pakistan
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote BestPakistan Quote  Post ReplyReply Direct Link To This Post Topic: I am A complete Biggener, BUT Pleeez Help
    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 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>"

%>

 

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mapnapkin View Drop Down
Newbie
Newbie


Joined: 28 January 2003
Location: United States
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote mapnapkin Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.