Thanks, that worked.
So I understand this better did this
($_POST[firstname][$key] = trim($_POST[firstname][$key]);)
not work because the variable to the left of the '=' was no longer POSTed?
Original Message
Remove $_POST from $_POST[firstname][$key], $_POST[middlename][$key] and
$_
17, 2004 2:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] getting an array out of the POST array
One day I need to take a vacation with a big pot of coffee and study arrays.
They're
my downfall.
We're moving to a new server and finally have a recent version of PHP.
We have a page on the
> while (list ($key, $val) = each ($_POST[firstname])){
> $_POST[firstname][$key] = trim($_POST[firstname][$key]);
> $_POST[middlename][$key] = trim($_POST[middlename][$key]);
> $_POST[lastname][$key] = trim($_POST[lastname][$key]);
you might be able to get this one yoursel
One day I need to take a vacation with a big pot of coffee and study arrays. They're
my downfall.
We're moving to a new server and finally have a recent version of PHP.
We have a page on the site for captioning the photos with the names of the subjects.
After the form is posted, the script would
4 matches
Mail list logo