RE: [PHP] From form to an array

2003-11-17 Thread Jeff McKeon
Jay Blanchard wrote:
> [snip]
> Is it possible to pass the values of a form directly into an array?
> [/snip] 
> 
> Each form is passed to an array already. Dependent upon form
> method (GET or POST) the form values are in the $_GET or
> $_POST array (newer versions of PHP).
> 
> Start here
> http://us3.php.net/manual/en/language.variable> s.predefined.php

Yes but $_POST[] array contains ALL the fields using an index of their
names.  I need the entries for field1 in one array and the entries for
field2 in another.

In a later function I need to move through the arrays incrementing their
index with every pass.  This can only be done if the array index numeric
as opposed to "named" right?

The field names in the form are like this

Tier1,price1
Tier2,price2
Tier3,price3

These are built automatcally and I need all the "Tier" values in one
array and all the "Price" values in another.

[code snip begin]




Enter the upper size limit and price for each Tier


Tier  Limit 
Tier  Price 

Email Size 
  


[code snip end]
Jeff McKeon
IT Manager
Telaurus Communications LLC
[EMAIL PROTECTED]
(973) 889-8990 ex 209

***The information contained in this communication is confidential. It
is intended only for the sole use of the recipient named above and may
be legally privileged. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication, or any of its contents
or attachments, is expressly prohibited. If you have received this
communication in error, please re-send it to the sender and delete the
original message, and any copy of it, from your computer system. Thank
You.***

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] From form to an array

2003-11-17 Thread Jay Blanchard
[snip]
Is it possible to pass the values of a form directly into an array?
[/snip]

Each form is passed to an array already. Dependent upon form method (GET
or POST) the form values are in the $_GET or $_POST array (newer
versions of PHP). 

Start here
http://us3.php.net/manual/en/language.variables.predefined.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php