|
Posted by New User on 05/09/05 23:16
I hope someone can give me a clue in this.
I just had to re-install Apache 1.33, PHP 4.3.11 on Red Hat Linux
server. and suddenly some of the scripts are not working.
One of them I tested is not parsing form variables.
I just tested it again using a small html form like the following.
<form name='search' action=test.php4>
<table>
<tr>
<td>First Name:</td>
<td><input type="text" name="FirstName" size="20" value=""> </td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="LastName" size="20" value=""> </td>
</tr>
<tr>
<td align ="right"> <input type="submit" value="Submit"> </td>
</tr>
</table>
</form>
With this script to print all posted variables.
<?php
echo "Printing all posted variables";
while(list($key,$value) = each($HTTP_POST_VARS)) {
if(is_array($value)) {
while(list($key2,$value2)=each($value)) {
echo "array $key: $key2 -> $value2";
}
} else {
echo "$key -> $value";
}
}
?>
The result is an empty page, except for the text "Printing all posted
variables", of course.
No variable is posted, according to that script.
Please help.
[Back to original message]
|