note 48120 deleted from function.header by betz
| From: | betz@php.net | Date: | Sun, 12 Dec 2004 20:11:12 +0000 |
| Subject: | note 48120 deleted from function.header by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-81729@lists.php.net to get a copy of this message | ||
Note Submitter: Renato Azevedo
----
When dealing with a script like this:
<?php
session_start();
$_SESSION[id] = $id;
$_SESSION[user] = $user;
header("Location: page.php");
exit();
?>
, my code simply didn't work! It wasn't redirecting to "page.php". I solve it
just placing the following line before any html tag:
<META Http-equiv='refresh' Content='0;url=page.php'>
Renato
----
Reason: bad code