Hope this is correct forum
I have been doing a simple menu based on forms with method = POST.
this is the code snippet:
<a href=./index.php>
<img src="./include/interface/images/png/logo.png">
</a>
<?
echo "<br>Doing a vardump for testing POST variables<br>";
var_dump($_POST);
echo "<br>Doing a vardump for testing GET variables<br>";
var_dump($_GET);
?>
<form name="cmp_post" method="POST" action="index.php"> <input type=text name=name><br>
<input type="submit" name="menu_post" value="Campaign_POST" class="menu">
</form>
<form name="cmp_get" method="GET" action="index.php">
<input type="submit" name="menu_get" value="Campaign_GET" class="menu">
</form>
it can be tested at rpg.eghave.dk
PROBLEM: when submitting via the form with GET method no worries. everything works everytime (and multiple times)
However using the POST makes the variables be transmitted once no problem, but on the second POST(and the following) the variable disappears??
Now it gets even stranger...this happens in IE 6, and Netscape 7, but not in Opera?!?!?
...and when i tested this at my own test environment, every browser worked?!?!?
php version is 4.1.2 and register globals is on (ISP choice).
I believe my ISP has messed something up, but .. has anyone encountered something similiar or am I just being stupid and has missed something vital?!?!?
thanks in advance 🙂