FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Associative Array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Associative Array [message #176159 is a reply to message #176148] Mon, 28 November 2011 09:42 Go to previous messageGo to previous message
Jesolo Sun is currently offline  Jesolo Sun
Messages: 8
Registered: November 2011
Karma:
Junior Member
> How?

Like Jerry said, you have the data in $_POST. Do you need to know
what data is there?

I see you have a variable structure as:

$product_data[n][m][?]

.... so I assume you need to know what [n], [m] and [?] are when a user
submits the form. Take a look at the array functions:


http://us.php.net/manual/en/ref.array.php

http://us.php.net/manual/en/function.array-keys.php#73992
http://us.php.net/manual/en/function.array-keys.php#29165


--
Dear Norman
i have used this example
http://us.php.net/manual/en/function.array-keys.php#73992:

the response of Array is this
Array
(
[0] => 0
[1] => product_data
[2] => 99
[3] => 300
[4] => prezzo0
[5] => prezzo1
[6] => prezzo2
[7] => prezzocal0
[8] => prezzocal1
[9] => prezzocal2
[10] => numero0
[11] => numero1
[12] => numero2
[13] => color
[14] => tipo_stampa
[15] => il_colore0
[16] => il_colore1
[17] => il_colore2
[18] => ad_adornment
[19] => 0
[20] => 1
[21] => 2
[22] => 3
[23] => pacchetto_id
[24] => colorepack
[25] => realization_period
[26] => submit
)

question:
how get this values?

example
$val0 = [2] => 99
$val1 = [4] => prezzo0
$val1 = [14] => tipo_stampa

??
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Order/Timing of Execution of PHP
Next Topic: Browser doesn't support
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 09:46:10 GMT 2024

Total time taken to generate the page: 0.28788 seconds