|
Posted by burke on 03/22/06 20:50
Fish44 wrote:
> Ive got a PHP script, which if it ends correctly, i want load another
> PHP file or an HTML page automatically, ie without user intervention.
> The new page shoud replace the current page on the browser. Is there a
> PHP command or function which does this?
>
> Thanks,
>
headers will work fine unless you've already sent data to the user, in
which case you'll need to use Javascript.
<script type="text/javascript">
location.replace("new_url");
</script>
That should work, but unless you can't, use the PHP header modification.
Burke
[Back to original message]
|