creating a dynamic link from a specific url
Moderator: General Moderators
creating a dynamic link from a specific url
Im not quite sure how to word this question but here goes. Im making a catalog and what i want to do is make a link that goes back to a certain page. I want to grab the url from the previous page and put it up as link on another page.
Is there an $HTTP_GET variable for something like this?? Ive googled this as well as tried forums but i feel i may be asking my question incorrectly.
Again what im looking to do is grab a url and place it as a hyperlink.
Any thoughts are greatly appreciated
Regards
-soia
Is there an $HTTP_GET variable for something like this?? Ive googled this as well as tried forums but i feel i may be asking my question incorrectly.
Again what im looking to do is grab a url and place it as a hyperlink.
Any thoughts are greatly appreciated
Regards
-soia
FIRST
i am sure we can help you, just state your question well.
SECOND (if i get it right)
add a referrer data (the address of the current page) to all links in current page. so that when user selects a link and open another page, that page knows exactly who is the referrer.
i am sure we can help you, just state your question well.
SECOND (if i get it right)
add a referrer data (the address of the current page) to all links in current page. so that when user selects a link and open another page, that page knows exactly who is the referrer.
Last edited by dethron on Fri Jun 24, 2005 1:14 pm, edited 1 time in total.
not likey going to be a problem as it's only one variable in the $_SESSIONs array...would take a helluva lotta people to notice any problems.dethron wrote:dont use session like that, because session uses your server's memory. if the number of the users who use your page increase, your server will have a problem
take a look at sessions there then post questions if you have them.
Code: Select all
//================ head.php================
<?php
echo "this is a page named as head.php";
echo "<a href=\"toss.php?referrer=head.php\">second page</a>";
?>
//================ toss.php ================
<?php
echo "this is toss.php";
echo "<a href=\"".$_GET['referrer']."\">the referrer</a>";
?>