-1

I have one page where i need to send some results to another PHP file.

include("test.php");

but i want to pass variable (var) also so that which can be processed by test.php using $_GET['var'] command. How is it possible in PHP?

Manish
  • 3,341
  • 15
  • 52
  • 87

1 Answers1

1

$var1="hello";

include ("test.php");

the test file contains below code

echo $var1." world";

kamatchi
  • 86
  • 2
  • 13