Re: $referrer = $_SERVER['HTTP_REFERER'] echo [message #181965 is a reply to message #181953] |
Fri, 28 June 2013 17:33 |
bill
Messages: 310 Registered: October 2010
Karma:
|
Senior Member |
|
|
On 2013-06-27 5:40 PM, Christoph Michael Becker wrote:
> Twayne wrote:
>> I have what's probably a simple and very basic question.
>>
>> My goal is to see where a visitor sending a form-email with mail() on
>> win 7 and XAMPP - PHP 5.3.5, came from. e.g. did he come here from the
>> right page or just barge into this page as his landing page?
>
....
> The double )) is wrong; just use a single ). You may consider to use
> only simple expressions for an if expression, e.g.:
>
> $cameFromExpectedPage = substr($referrer, -13) === 'formcheck.php';
> if ($cameFromExpectedPage) {
> echo 'Something showed up';
> }
>
Duh! That helped; thank you!
Twayne`
|
|
|