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 #176149 is a reply to message #176144] Sat, 26 November 2011 15:28 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/26/2011 3: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?

I'm sorry, Jesolo, I understand English isn't your first language and
you're trying to communicate your problem. But reading through both of
your posts again, I'm just not understanding what your problem is.

The data is in your $_POST array, and all accessible to your script.
You do have multiple dimensional arrays in your $_POST array, but you
access it similar to in your HTML, i.e.

$val0 = $_POST['product_data'][99][300]['prezzo0']; // 2.20
$val1 = $_POST['product_data'][99][300]['prezzo1']; // empty string

and so on.

Is this your problem?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 12:00:35 GMT 2024

Total time taken to generate the page: 0.05138 seconds