--- Sigrid E Kelsey <[EMAIL PROTECTED]> wrote:
>
> I would like an alert to pop up everytime someone accesses a certain
> cgi script (I'm new at this).
> #print "<SCRIPT LANGUAGE='JavaScript'>
> # alert('MESSAGE');</script>";
Not sure why that one wouldn't work....but try this.
Write a small static HTML test page that does what you want, like so:
<html><head><title>foo</title></head>
<body onLoad=alert('message') >
Did it pop up?
</body></html>
now wrap the cgi you want around that.
#!perl -w
print <<END;
Content-type: text/html
<html><head><title>foo</title></head>
<body onLoad=alert('message') >
Did it pop up?
</body></html>
END
Then you can expand as needed to make it do what you need, moving
pieces around. Also, If you're doing CGI's, I'd look at CGI.pm
perldoc CGI
ciou.
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/