ADVERTISEMENT



Google       

Home -> Law Blog Directory -> Legal Marketing & PR Blogs -> PaperStreet Web Design: SpeakOut

OR PHONE (866) 635-1838 for Bankruptcy Help, (866) 635-6190 for Divorce,
(866) 635-2689 for Personal Injury or (866) 635-9402 for Criminal Defense

Find a Local Lawyer

Bankruptcy (866) 635-1838
Divorce (866) 635-6190
Personal Injury (866) 635-2689
Criminal Defense (866) 635-9402

Bookmark

Legal Marketing & PR

: PaperStreet Web Design: SpeakOut

Where Did that Inquiry Come From? Contact Form Previous Page Detection in PHP

By Peter

ADVERTISEMENTS

It?s great to see where contact forms are submitted from. It allows you to track which pages are effective in landing inquiries.  In addition to the standard info (name, email, phone), you can also detect what pages they submitted the form from.

Here is one of our standard inquiry forms with data excluded:

=============

Name: ***********
Firm Name: ***********
Email: ***********
Phone: ***********
Question: Looking to update our current website: www. ***********.com. Could you provide us with a quote? Would like to add some photos and possibly video to our site and email contact option.

Referral Page: http://www.paperstreet.com/webdesign.php

=============

In that case, the person visited our web design page and submitted their info.  How did we know that?  We used the HTTP_REFERER command.

Command to Use

‘HTTP_REFERER‘

The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.

http://us3.php.net/manual/en/reserved.variables.server.php

Code to Use

<?php echo ?Referral Page: ? . $_SERVER['HTTP_REFERER']; ?>

Full post as published by PaperStreet Web Design: SpeakOut on July 27, 2009 (boomark / email).

Bloggers, promote your law blog by nominating your blog for inclusion in USLaw.com's Law Blog Directory and RSS Reader. Benefits described.
Related Law Articles

Lawsuits and Settlements

Related Searches

























































































































US Law
#1 Online Legal Resource













Your Blog Subscriptions
Subscribe to blogs

10,000+ Law Job Listings
Lawyer . Police . Paralegal . Etc
Earn a law-related degree
Are you the author of this blog? Adding USLaw.com to your Blogroll increases relevance. You qualify to display a USLaw Network badge.
Suggest changes to this blog's description or nominate another for inclusion. Register for updates.


Practice Area
Zip Code:

Contact a Lawyer Now!






0.0146 secs (new cache)