Quick Search:
 Perl Code: Run script with no output Jump to:  
Category: >> Perl Code >> Run script with no output  

<< lastnext >>

Snippet Name: Run script with no output

Description: Ever wonder how to run a CGI script without returning anything? Here's how.

Comment: (none)

Language: PERL
Highlight Mode: PERL
Last Modified: March 05th, 2009

# You can point the src property of an image to a 
# CGI script - rather like a page counter - and get 
# the CGI script to return a 1x1 pixel blank image: 
<IMG SRC="cgi_script.cgi" WIDTH="1" HEIGHT="1">
# or, or you want to run the script after the document 
# has finished loading: 
<BODY onLoad="if (document.images) document.images['myImage'].src='cgi_script.cgi'">
<IMG SRC="blank.gif" WIDTH="1" HEIGHT="1">

   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org