Hi
I have following problem:
I get a form with some fields having the same name.
PHP solves this problem by appending [] to the form-field-names which causes the
creation of arrays.
My problem now is, that I have to pass those variables further to another script (not
PHP) in exactly that order
was that the second
field overwrote the first. How do you get an array?
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 10:03 AM
To: PHP
Subject: [PHP] Parse POST-Data
as
$text[0]..[2]: being each value in the form
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-Original Message-
From: Stefan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 10:03 AM
To: PHP
Subject: [PHP] Parse POST-Data
Andrew Forgue wrote:
By putting brackets after the variable name [] in a form element
input type=text name=text[]
input type=text name=text[]
input type=text name=text[]
BLAAACH!!! Please add an index variable, as fields that you don't need
wil NOT be posted, so when you have several
Jimmy Elab wrote:
input type=text name=text[?php echo $il ?]
When your not positioned straigth at your keyboard a ';' may
occasionally turn into an 'l'...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
5 matches
Mail list logo