Problems with HTTP_POST_VARS

From: Date: Fri, 24 Nov 2000 18:42:22 +0000
Subject: Problems with HTTP_POST_VARS
Groups: php.general 
Request: Send a blank email to php-general+get-26991@lists.php.net to get a copy of this message
Hi. For example: my form have 3 fields: <inpu type=checkbox name=data value=one> <inpu type=checkbox name=data value=two> <inpu type=checkbox name=data value=four> well, when user click on Submit button, I only can get the value of the last chekbox checked./... and the others values, how I can retrieve it??? I use the following code: foreach($HTTP_POST_VARS as $data) echo "$data<br>"; ( ok, ok.. is bad, but is a example.. :) In Perl, its possible to use the read() function read(STDIN, $buffer, $ENV{"CONTENT_LENGTH"}) buth I've some problens to implement it with PHP ( fopen("php://stdin") crash ) Can someone help-me???? Rafael Steil

« previous php.general (#26991) next »