I am trying to pass a variable to a included file. I have done something like this:
$id = $_GET['id'];
include('myfile.php');
And the file 'myfile.php' contains a form and a submit button. It's processing page is 'process.php' and in it, I have done:
$_id = var_dump($id);
// insert query
But I did not get the value of the variable, so 0 is inserted into the table.
Is there any other simpler way of doing it?
Thanks!