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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.