> I want to let users goto a page (url) in my .php file. how can I do this?
Do you mean, output a link to another page that users can click on? Or
automatically redirect them to another page as soon as your .php page is loaded?
For a link:
echo '<a href="' . $url . '">link text</a>';
For a redirect:
header("Location: $url");
For more information about header(), see http://www.php.net/header .
--
Benjamin Esham
bde...@iname.com
http://bdesham.net
> I want to let users goto a page (url) in my .php file. how can I do
> this?
Usual HTML. <a href="url">Go to URL</a> if outside PHP code, otherwise
echo "<a href=\"url\">Go to URL</a>";
HTH
--
Some people say that dying is hazardous for one's health.
Others say that nothing can travel faster than light.
I wonder what the logical connection between these statements is.
Perfect guys, (both of you)...
Thnx for the great help!!!