Page 1 of 1

check wheres my mistake, please

Posted: Thu Feb 12, 2004 1:22 pm
by grudz
i'm still green when it comes to php coding, i usually get these stupid things but im drawing a blank......i want it to link to what $email is (the referer) not actually "$email"....thats what its doing.

$email = $_SERVER['HTTP_REFERER'];

Code: Select all

<?php print ' <a href="$email">' . $email . '</a> -'; ?>

Posted: Thu Feb 12, 2004 1:30 pm
by Illusionist
try

Code: Select all

echo "<a href="mailto:$email">$email</a>-";

Posted: Thu Feb 12, 2004 1:31 pm
by grudz
its not an email address.......its a URL......i called it email for another reason......i need it to know that the href is not "$email" but what the variable is.....

Posted: Thu Feb 12, 2004 2:01 pm
by Illusionist
then use:

Code: Select all

echo "<a href="$email">$email</a>-";

Posted: Thu Feb 12, 2004 2:08 pm
by grudz
thanx....i had a little brainfreeze....i completly forget the \ to make it litteral....thanx again