Reply to Re: how to open a php page automatically

Your name:

Reply:


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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация