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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx

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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux