RE: [PHP] "calling" one php script from another

From: Date: Wed, 03 Mar 2004 20:12:56 +0000
Subject: RE: [PHP] "calling" one php script from another
Groups: php.general 
Request: Send a blank email to php-general+get-179366@lists.php.net to get a copy of this message
[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(); }

« previous php.general (#179366) next »