PDA

View Full Version : Parse error



zoobie
August 11th, 2002, 01:46
Parse error: parse error, unexpected T_STRING

if (eregi("^<a href="https://www.site.com" target="_blank">https://www.site.com</a>", $_SERVER['HTTP_REFERER'])){

Isn't there some sort of checker for this stuff?

Thanks :rolleyes:

GregT
August 11th, 2002, 02:02
Originally posted by zoobie
Parse error: parse error, unexpected T_STRING

if (eregi("^<a href="https://www.site.com" target="_blank">https://www.site.com</a>", $_SERVER['HTTP_REFERER'])){

Isn't there some sort of checker for this stuff?

Thanks :rolleyes:


if (eregi("^<a href='https://www.site.com' target='_blank'></a>", $_SERVER['HTTP_REFERER']))
{

php dont like double quotes inside if's and echo's

zoobie
August 11th, 2002, 15:21
Thanks :D

biggulp
August 12th, 2002, 04:14
$_SERVER['HTTP_REFERER'] doesn't contain <a href="https://www.site.com" target="_blank"> so it won't work.