Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3944

Re: Associative Array

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Associative Array
Date 2011-11-26 10:28 -0500
Organization A noiseless patient Spider
Message-ID <jar0ic$8mq$1@dont-email.me> (permalink)
References <4ed034c2$0$1384$4fafbaef@reader1.news.tin.it> <japdds$g99$1@dont-email.me> <4ed09cbf$0$1384$4fafbaef@reader1.news.tin.it>

Show all headers | View raw


On 11/26/2011 3:01 AM, Jesolo Sun wrote:
>
>
> "Jerry Stuckle" ha scritto nel messaggio news:japdds$g99$1@dont-email.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] => 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
> [colorepack] => 74#P_701_E
> [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@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-26 01:37 +0100
  Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-25 19:55 -0500
    Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-26 09:01 +0100
      Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-26 05:01 -0500
      Re: Associative Array Norman Peelman <npeelmandog@cfl.rr.com> - 2011-11-26 07:55 -0500
        Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-28 10:42 +0100
      Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-26 10:28 -0500
        Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-28 10:41 +0100
          Re: Associative Array Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> - 2011-11-28 11:11 +0100
            Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-28 11:33 +0100
              Re: Associative Array Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> - 2011-11-28 12:08 +0100
              Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-28 07:27 -0500
                Re: Associative Array Cristiano Larghi <c.larghi@criosoftware.it> - 2011-11-28 12:41 +0000
                Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-28 14:48 +0100
                Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-28 13:57 -0500
                Re: Associative Array Doug Miller <doug_at_milmacdotcom@example.com> - 2011-11-28 15:42 -0500
                Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-28 16:00 -0500
                Re: Associative Array Doug Miller <doug_at_milmacdotcom@example.com> - 2011-11-28 18:26 -0500
                Re: Associative Array Jerry Stuckle <jstucklex@attglobal.net> - 2011-11-28 21:03 -0500
                Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-28 14:31 +0100
                Re: Associative Array "Jesolo Sun" <gala@tiscali.it> - 2011-11-28 15:59 +0100
                Re: Associative Array Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> - 2011-11-28 16:39 +0100

csiph-web