I am baffled by the inability to send variables accross two pages through a form...
This is a little experiment I set up to see exactly what was going on:
<form action="test_print.php" method="post"> <input type="text" name="site_id" value="something" size="30"> <input type="submit" value="Send"> </form>
Print Page (test_print.php):
$site_id = $_GET["site_id"]; print "$site_id";
And the result is a blank page.
Then I tried directly on the browser:
and that worked - I got the word "something" printed.
I have to add that I have moved server and all these pages worked before.
Also, someone has already suggested the use of $_GET["site_id"]; - which I dont know exactly what it does, but it does seem to make it work when variables are passed from one page to the other via the URL.
Can someone shed some light as to what is going on and how to fix it.