Posted by Stephen V on 04/02/06 19:09
I don't know why it still doesn't work.
I do this now:
If (oci_execute($stmt)){
oci_free_statement($stmt);
header("location:http://127.0.0.1/add_task.php?request_name=$req_name");
};
// but it doesn't get me to add_task.php even without
"?request_name=$req_name"
What else can I try?
}
<milahu@googlemail.com> a ιcrit dans le message de news:
1143985931.928105.227940@i39g2000cwa.googlegroups.com...
> Hi,
>
> You may only use header() *before* you output something to the client.
> So you can either check the redirect condition before starting output,
> or you can use output buffering [1].
>
> The correct code to redirect the user would be
> header("Location: $URL");
>
> [1] http://www.php.net/outcontrol
>
> Cheers, milahu
>
[Back to original message]
|