Help with a cgi script

A

\(a\)

Would someone be able to provide me with a few lines of code (cgi) that
would accomplish the following:

It would read the url in the address field in IE and simply print it to the
screen.

Thank you.
 
P

PapaBear

<code>

print <<"EOT";
Content-type: text/html

<html>
<body>
The url is: $ENV{DOCUMENT_ROOT}$ENV{REQUEST_URI}$ENV{QUERY_STRING}
</body>
</html>
EOT

</code>

hope this helps...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top