I´m having trouble passing the variable 'name' (see below) to page2.php. It´s fairly easy to get it to work when register_globals is turned on, but I can´t get it to work when its off.
I´ve browsed around in the forum and found several different examples, none have worked. One way was to use
$GET['name'] if I had name=somthing in the URL, but I get a "undefined variable: GET" warning.
Also, is there anyway I can prevent the submited information from appearing in the URL?
_PAGE1___
<?php
session_start();
?>
<form action='page2.php' method='get'>
<input type='text' name='name'><br>
<input type='submit' name='post' value='Submit'>
</form>
_page2.php
<?php
session_start();
echo $_GET['name'];
?>