Re: Missing values
| From: | andreas \(@work\) | Date: | Tue, 22 Aug 2000 16:39:32 +0000 |
| Subject: | Re: Missing values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12973@lists.php.net to get a copy of this message | ||
try
reset $fuseVarMust
before you use list
andreas
----- Original Message -----
From: "n e t b r a i n" <net-brain@net-brain.net>
To: <php-general@lists.php.net>
Sent: Wednesday, August 23, 2000 12:20 AM
Subject: [PHP] Missing values
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 ...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net