Executing a CGI Script... - ...
I have seen it done before, a CGI script was executed through an <img> tag? Can this be used for executing a script rather than using SSI? Do you need any special addons to execute a CGI script in an <img> tag?
Thanks
----------
[Rob P]
[Email:[email protected]]-[ICQ:16560402]-[Voice Mail:1-877-309-2286]
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
beebalm posted this at 23:02 — 27th September 1999.
They have: 6 posts
Joined: Aug 1999
Rob,
put the image tag inside an anchor tag like this:
<a href="your_script.cgi"><img src="your_image.gif" border=0></a>
cheers,
kimball
Anonymous posted this at 23:13 — 27th September 1999.
They have: 5,633 posts
Joined: Jan 1970
I dont think that was what the poster was hinting it.
You can, indeed, call a cgi-script from an image tag. However, you cannot include any text into your document using this methid. So, its more often used for script with no visible return value like hidden counter. The script need to have an image as a return value, or must redirect the browser to an image though, if you dont want a broken image to appear in the browser window.
Hope this helps,
Malte
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.