faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 5 people (80%) answered Yes
Recently 4 of 5 people (80%) answered Yes

Entry

How can I direct php output to its calling html page?

Jan 24th, 2009 09:11
Brad Kint, ha mo, PHP Man, Henrik Hansen, Keith Taylor,


You can use the referer for this purpose, for example:
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0; URL=" . $_SERVER
["HTTP_REFERER"] . "\">";
This works on most browsers / platforms, though some browsers dont 
send 
a referer for privacy reasons, therefor it might be usefull to send 
the 
caller html page as a hidden form value or like and use that in youre 
refresh.
http://forsakringguide.blogspot.com
http://ghiddeasigurare.blogspot.com
http://guidedelassurance.blogspot.com
http://reiseneuropa1.blogspot.com
http://europadecalatorie.blogspot.com
http://reizeneuropa1.blogspot.com
http://rejsereuropa.blogspot.com
http://consiglibellezza1.blogspot.com
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com
===
http://www.phpbuilder.com/manual/en/ref.outcontrol.php
i hope that help.
http://americanahost.com
http://www.qwesz.com