| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #2 (permalink) |
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() | <? echo $_SERVER['HTTP_HOST']; ?> that will echothe domain you viisited from then what you could maybe do, is then say if the redirect link was http://bob.com/bob.php you could change the code to above code to <? $url = $_SERVER['HTTP_HOST']; ?> and in the redicrect url (so after bob.php) add <? echo "?url=$url"; ?> now open bob.php on the server and place this <? $url = $_GET['url']; echo $url; ?> the link would appear as redirect link would hcnage to http://bob.com/bob.php?url=yourdomain.com |
| |