Raising the Bar: An Internet Marketing Blog for Lawyers.

Blogging on Law Firm, Professionals and Business Web Design

Peter Boyd

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

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/web-design/

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

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']; ?>

  • LHC

    I down loaded the Product manager's link, It seems get rid of the ill, but now I got three pop up in ten minutes, be careful.

  • http://www.chrispierre.com Chris Pierre

    All of these are very useful plugins but my favorites are the Web Developer Toolbar for countless reasons , Firebug (which is great for detecting css errors) and lastly Colorzilla.

  • http://www.chrispierre.com Chris Pierre

    Almost One Year Later and I still love my G1 . I believe its a very user-friendly phone and it has a clean and smooth UI and the google maps app is lightening fast and gives the option of Streetview ! Even though The Mytouch (G2) has released I have decided to remain with the G1 because of the option of using the qwerty keyboard or touch screen.

    T-mobile G1 – Well Recommended

  • ziggy

    Ask is horrible! It hijacked all my search providers after installing a freeware program called Format Factory. All my default search providers have been changed to Ask. I will get rid of both Ask and Format Factory. I don't care.

  • http://www.cameronpreston.com Cameron

    I'm trying to get this to work but it doesn't seem to change anything. Still gives me the ol WordPress 404 error

  • tinydream

    THANK YOU, I've been trying to figure out how to get this to work for days!

  • Ted

    Fantastic, thank you so much ask.com so annoying…

  • Philip Cohen

    Well, I have finally stopped the ask.com search engine interfering in my searches. Needless to say a Google search found a lot of other very unhappy people trying to get rid of this obnoxious piece of garbage and, unfortunately, no complete answer was found there.

    Having uninstalled everything that even remotely looked like “ask” I then searched the Registry for “ask.com” and noted some connection with STOPzilla the spyware program I have been using for a year or so (!), so I contacted them. The answer (in this case): uninstall STOPzilla, run their cleanup program, and then reinstall the latest version of STOPzilla and, hey presto, ask.com is gone!

    This useless piece of what is effectively ‘malware’ apparently comes bundled with other software, and you may or may not be asked if you also want to install ask.com search; if you are ever asked, don’t install it!

    The only question that remains is why did ask.com only very recently start interfering with my eBay item number searches made from within an eBay page and then why only for completed listings between 60 and 90 days old?

    All very strange (and irritating).

  • Philip Cohen

    The contents of the email from STOPzilla:
    ————————————————–
    Here’s what you need to do: (It’s easy, really.)

    1. Click Start in the lower left corner of your screen and from the Start menu, select Control Panel.

    2. In the Control Panel dialog, click Add or Remove Programs.

    3. Find the STOPzilla entry in the list and left click on remove.

    4. Download
    http://download.stopzilla.com/binaries/stopzilla/…
    and run this clean-up program. The program will restart your computer when finished.

    5. Please click on the link below to download and install the latest version of STOPzilla:
    http://download.stopzilla.com/binaries/stopzilla/…

    6. If you need to get your Registration Key re-issued, please click:
    https://www.STOPzilla.com/support/stopzilla/send-…

    Thank you for contacting technical support,

    The STOPzilla Support Team

  • volinh

    U can change parameter session_Auto_satrt From 0 to 1 after that you restart apache or xamp some thing right that ,you use for running browser

  • volinh

    u only change session_auto_start=0 to 1 after that restart apache.it OK

  • clarisse

    I tried to follow your instructions but I cannot find ask.com in my IE search settings. I only have Google (which is my default) and yahoo. Yet somehow when I use my address box to search, it redirects to ask.com. Does anyone have another solution to this? It's bugging me out. This really sucks.




Categories:

About Us

PaperStreet creates new web sites and revitalizes aging ones. In addition to creating web sites that are engaging, we also have a knack for getting results.

Read More »



Featured Portfolio:

View All
Contact Us