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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[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();
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to