ONly show if referred by...


#1

I have a form that you need to only be able to see if you were referred from another specific page (it’s the last part of a purchase transaction). Is there a way to do this in PHP?


Michelle, wife & homeschooling mommy to 4
The Mommy Database – #!/usr/bin/mom

anger makes dull men witty, but it keeps them poor.
– elizabeth i


#2

Yes, I would look into using sessions for this.

http://www.php.net/sessions

or you could try the $HTTP_REFERER variable.


#3

and a simple if
if ($_SESSION[“purchase”])
{
// show the form
}

but I think you know that already.