Missing values
| From: | n e t b r a i n | Date: | Tue, 22 Aug 2000 22:20:27 +0000 |
| Subject: | Missing values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12969@lists.php.net to get a copy of this message | ||
Hi,
I'm in trouble with a simple function that I'm trying to implement on a my
script (php 3)...
In order to process a client form, I've split it into 2 steps where in the
first I collect some information in an array format, and in the second one I
take other information in an array format too. I mean:
first form:
<input type=text name=fuseVarMust[var_a]>
<input type=text name=fuseVarMust[var_b]>
<input type=text name=fuseVarMust[var_c]>
and so on ...
The problem is, when I try to print out these previous values in order to
insert them in a <input type=hidden etc. etc.>, they are not present any
more. I mean:
when in the second client form I write:
while(list($key,$value)=each($fuseVarMust)) {
echo("<input type=hidden name=fuseVarMust[".$key."]
value=\"".stripslashes(strip_tags(escapeshellcmd($value)))."\">\n");
}
nothing is printed!
The strange thing is that if I try to print the type of $fuseVarMust or the
number of elements in that array, all works fine .... I known, I probably do
something wrong, but I'm inable to find an easy solution ...