Posted by flits on 12/27/06 19:46
LS
I have set up my first Linux box. But I experience some strange POST
behaviour. Maybe this is a know bug or maybe I have done something
wrong with my setup. But I just can't seem to find any solution about
it on google.
I have the following two scripts:
1.php:
<form name="input" action="2.php" method="post">
to pass: <input type="text" name="pass">
<input type="submit" value="Submit">
</form>
2.php:
<?php
echo "passed: ".$_POST['pass'];
echo "<pre>";
print_r($_REQUEST);
echo "</pre>";
?>
This results in:
Notice: Undefined index: pass in /var/www/2.php on line 3
passed:
Array
(
)
The above script doesn't pass the POST. But when I change it to GET it
does get passed to 2.php. Does anyone have an idea?
I am using:
Debian 3.1r4
Apache v1.3.33
PHP v4.3.10-18
Kind regards,
Flits.
Navigation:
[Reply to this message]
|