Passing arrays to forms
| From: | Lewis Bergman | Date: | Fri, 23 Jun 2000 23:17:26 +0000 |
| Subject: | Passing arrays to forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2878@lists.php.net to get a copy of this message | ||
A lot of discussion seems to go toward this.
As a result I wrote a script to see what was going on.
I haven't yet seen an explanation that I could understand for the result I got.
I can set up an array, no problem.
I can pass the values from one php script with a form post or back to
itself, no problem.
Display those values in the same or another form, no problem.
I can strip the empty rows from a cell with array_splice, no problem.
Problem -
What I don't seem to understand is why the size of the array always grows by
one row, and why that one row always has the value of Array.
Then if I use array_pop to shed the Array value, it turns int "A", not "Array".
Is this normal or am I doing something strupid in my post?
--
-Lewis Bergman-
Texas Communications
915-695-6962
4309 Maple St.
Abilene, TX 79602