Re: [PHP] Newbie question about links
On Wednesday 13 February 2002 03:13, Chris Schoeman wrote: I want to make links on my website which doesn't show the original url of that page. How Can I do that? Have your links of the form: htpp://www.mydomain.com/linkto.php?id=123 Then in linkto.php you need to redirect (using header()) to the appropriate URL. Something like: ? $LINKS = array(123 = www.doo.com, 124 = www.dah.com/doodah.html); if ($LINKS[$id]) { $link = $LINKS[$id]; header(Location: http://$link;); } else { echo Invalid link!; } ? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* It occurred to me lately that nothing has occurred to me lately. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Newbie question about links
reference the file that you wish to link to: A href=newpage.phpClick here/A -Original Message- From: Chris Schoeman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:13 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question about links I want to make links on my website which doesn't show the original url of that page. How Can I do that? Thankx Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php