Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Syntax question?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Syntax question?

 Post Reply Post Reply
Author
rocketdawg View Drop Down
Newbie
Newbie
Avatar

Joined: 03 August 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote rocketdawg Quote  Post ReplyReply Direct Link To This Post Topic: Syntax question?
    Posted: 24 October 2004 at 5:04pm

<%
response.write "<img src=""imgs/Request.QueryString("intcatalogID").gif"">"
%

Does anybody have an idea why this doesn't show the gif?

I am trying to avoid multiple lines of this:

     if Request.QueryString("intCatalogID") = "CPQ" THEN response.write "<img src=""/imgs/compaq.gif"">"
     if Request.QueryString("intCatalogID") = "DIG" THEN response.write "<img src=""/imgs/digital.gif"">"
     if Request.QueryString("intCatalogID") = "EPS" THEN response.write "<img src=""/imgs/epson.gif"">"

Thanks for any help you may have on the syntax.



Edited by rocketdawg
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2004 at 8:56pm
response.write "<img src=""imgs/" & Request.QueryString("intcatalogID") & ".gif"">"

Lead me not into temptation... I know the short cut, follow me.
Back to Top
rocketdawg View Drop Down
Newbie
Newbie
Avatar

Joined: 03 August 2004
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote rocketdawg Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2004 at 11:22pm

And that's why you get the big bucks..

Thank you very much! I was going nutty with that.

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.