Re: array $_POST problem
| From: | Richard Davey | Date: | Tue, 16 Mar 2004 18:13:54 +0000 |
| Subject: | Re: array $_POST problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180577@lists.php.net to get a copy of this message | ||
Hello Joey,
Tuesday, March 16, 2004, 6:16:34 PM, you wrote:
JK> I have a SuSE 9.0 Linux server running PHP and Apache2 (my phpinfo() data is
JK> at http://redfishnetworks.com/~jkelly/test.php), and my
JK> problem is this:
JK> I've got a sticky problem that I need to solve. I've just turned on
JK> register_globals in my PHP php.ini file, and therefore have to run my form
JK> variables through $_POST:
If you don't know in what way PHP sends the POST data, then the best
solution is simply to view it:
<?
echo "<pre>";
print_r($_POST);
echo "</pre>";
?>
(Or you can var_dump the whole thing)
By looking at the structure like this you'll soon see how to access
the values inside of it rather than second-guessing all the time.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html