Jump to content

[SOLVED] url problem


verN

Recommended Posts

I am trying to create a email a friend script and I have encurtered a problem. The url link does not work in the <a href tag howver when i echo the variable it works the following is the code

 

<h2>Email this page to a friend</h2>
<form id="form1" name="form1" method="post" action="">

Complete the details below to send a link to the page:<br>
<? $refurl = $_SERVER['HTTP_REFERER']; ?>
<? print $refurl;?>



<a href="$refurl"><? print $refurl;?></a>

 

 

thanks in advance

 

the link comes up but when it is clicked on it doesn't know where to go

Link to comment
https://forums.phpfreaks.com/topic/43037-solved-url-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.