You are here: Help! Posed Variables Are Empty. « All PHP « IT news, forums, messages
Help! Posed Variables Are Empty.

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация