Make your own free website on Tripod.com
Home     My Faqts     Contributors     About     Help    

FAQTS : Computers : Programming : Languages : PHP : Language and Syntax : General

Entry Add Entry Alert - Edit this Entry

Did You Find This Entry Useful?

10 of 12 people (83%) answered Yes
Recently 3 of 3 people (100%) answered Yes

How can I call a php script from within another and pass variables to it?

Jun 15th, 1999 09:00

Nathan Wallace
Řystein Kristoffer Paulsen


When you include a file, the existing variables still exists.  Just set
the variable before you require the file, and it will appear inside the
required file as well.

<?
$variable="test";
include ("other.php3");
// or require ("other.php3");
?>

You can then reference $variable inside other.php3.



© 1999-2000 Synop Software