Solved

Simple NT Script - HELP

Posted on 1998-08-26
1
148 Views
Last Modified: 2010-03-04
I was wanting to come up with a (hopefully) simple script to get the full url of the location that a person was at before they came to my site. (ie the page that the link was placed)

I realize you have to use the ENV VAR HTTP_REFFERER, but how!!??

and then I want to load a page from a file, with the URL at the top. For example:

        Thanks for visiting my page, you came from
            http://www.somewhere.com/link.html

thanks
0
Comment
Question by:john1998
1 Comment
 
LVL 5

Accepted Solution

by:
b2pi earned 40 total points
Comment Utility
Spelling is important here, HTTP_REFERER


print "Content-type: text/html\n\n";
print "Thanks for visiting my page, ";
print "you came from $ENV{HTTP_REFERER}\n<BR>";

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Syslog text file into database or into .CSV 19 90
perl CPAN issue 3 90
instmodsh - listing perl modules 2 63
Perl tar error 8 28
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now