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 #176148 is a reply to message #176144] Sat, 26 November 2011 12:55 Go to previous messageGo to previous message
Norman Peelman is currently offline  Norman Peelman
Messages: 126
Registered: September 2010
Karma:
Senior Member
On 11/26/2011 03:01 AM, Jesolo Sun wrote:
>
>
> "Jerry Stuckle" ha scritto nel messaggio news:japdds$g99$1(at)dont-email(dot)me...
>
> On 11/25/2011 7:37 PM, Jesolo Sun wrote:
>
>
> SORRY......
>
> Data FROM POST
> print_r ($_POST);
>
>
> Array ( [product_data] =>
> Array ( [99] =>
> Array ( [300] =>
> Array ( [prezzo0] => 2.20
> [prezzo1] =>
> [prezzo2] =>
> [prezzocal0] => 238.03
> [prezzocal1] =>
> [prezzocal2] =>
> [numero0] => 108
> [numero1] =>
> [numero2] =>
[color=blue]> => 64
> [tipo_stampa] => 4_0
> [il_colore0] => 1
> [il_colore1] => 1
> [il_colore2] => 1
> [adornment] =>
> Array ( [0] => 11 [1] => 12 )
> [pacchetto_id] => 136#P_701
[color=blue]> [colorepack] => 74#P_701_E[/color]
> [realization_period] => N ) ) ) [submit] => Conferma ordine )
>
> I need this data
> 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


--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
[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: Fri Sep 20 10:30:58 GMT 2024

Total time taken to generate the page: 0.04324 seconds