RE: [PHP] newbie question about one php script passing control to another

From: Date: Thu, 20 Mar 2008 16:17:44 +0000
Subject: RE: [PHP] newbie question about one php script passing control to another
Groups: php.general 
Request: Send a blank email to php-general+get-271902@lists.php.net to get a copy of this message
Im not sure I understand the question. Pass control from index.php to welcome.php ??? index.php : <? echo "<form action=welcome.php method=post><input type=hidden name=tagme value=yes><input type=submit value='Continue'></form>"; ?> welcome.php <? if($_POST['tagme'] == "yes"){ echo "Congrats you are there";}ELSE{echo "You failed";} ?> That kind of pass control? Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass control to another. However, so far in all of the books and other documentation I've looked at for php, I cannot find a way for one php program to pass control to another. Is this possible in php, and, if so, please let me know how. Thank you. Rod Clay clay.1@osu.edu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#271902) next »