fareedreg Posted December 23, 2009 Share Posted December 23, 2009 $val=$_POST["txtmemid"]; require_once("balance.php"); how can i call balance.php with variable $val value along with it. Link to comment https://forums.phpfreaks.com/topic/186123-php-variable-call/ Share on other sites More sharing options...
oni-kun Posted December 23, 2009 Share Posted December 23, 2009 Any variable will be passed with the include provided they are in the same scope. a.php: $a = "foo"; include('b.php'); b.php: $b = "bar"; echo "$a$b"; //echos foobar Link to comment https://forums.phpfreaks.com/topic/186123-php-variable-call/#findComment-982927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.