hello,
i am a absolut php beginner. right now i am looking for function, which opens a new location. i dont want to use java-script, i am sure there is a php function for that.
This will redirect the browser, check the manual. Needs to go before any html code (as in )
<? header("Location: http://www.asdeporte.com/"); exit; ?>
Saludos Gerardo
But what is the role of exit; ? What do you exit?
The current page. All you want to send to the browser is the redirection, there's no reason to have send else.
Hi there! It is header() function. Here is an example.
<?php header("Location: http://www.BestPriceHost.com"); exit(0); ?>
Regards
T. A. Barry
Get FREE domain with every hosting. So many features just for $79.99 per yr. www.BestPriceHost.com