How would I go about writing a conditional statement to check if visitor is coming from a particular

Posted by Matthew on Stack Overflow See other posts from Stack Overflow or by Matthew
Published on 2010-06-08T18:56:54Z Indexed on 2010/06/08 19:02 UTC
Read the original article Hit count: 165

Filed under:
|
|

Hello guys,

What I have in mind is this... We are going to have people come from a particular site during a acquisition campaign and was wondering how I could conditionalize a certain section of my site to display a thank you message instead of the sign up form as they would have had the opportunity to fill this out before coming to my landing page.

I have seen solutions like: $referal = mysql_real_escape_string($_SERVER['HTTP_REFERER']);

I would like to know if this is the best way to get this to work???

->>> okay this is what i think might work. The third party website that is referring people to our landing page once the form on that site has been filled out can push into the record a hidden input value of "www.sample.com" or whatever... then I can have something check the for that particular value and fire off the conidtional.

Does that even sound right?

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql