Re: "calling" one php script from another
| From: | Phillip Jackson | Date: | Thu, 04 Mar 2004 03:12:39 +0000 |
| Subject: | Re: "calling" one php script from another | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179412@lists.php.net to get a copy of this message | ||
http://us4.php.net/switch
if/else/else/else/else is ridiculously hard to read. for more then
if/elseif/else use switch.
~pj
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
news:C8F323573C030A448F3E5A2B6FE2070B0352224C@nemesis...
[snip]
Does anyone know of a way to jump from one php script to
another without going through the client browser? The closest I have
been able to come to doing that is to use nested frames where the
parent frame can call multiple php scripts, one for each child frame.
[/snip]
You mean like ...
if("dog" == $_POST['animal']){
include("dog.script.php");
or <--not code
header("location: dog.script.php"); exit();
} elseif("cat" == $_POST['animal']){
include("cat.script.php");
or <--not code
header("location: cat.script.php"); exit();
} else {
include("generalpets.script.php");
or <--not code
header("location: generalpets.script.php"); exit();
}