[PHP] Dynamic variables (with method=post)

2003-03-19 Thread Fabio Bot
Hi,

How do i receive dynamic variables with POST ?
Please, see the code fragment.

$ped_item = mysql_result($result, $j, 0);







"upd_item" was usually received.
How do i receive "quantidade$ped_item"  ?

I have tried:

$p1 = $_POST['upd_item'];// this is OK !
$p2 = $_POST['quantidade$upd_item'];// this doesn't work !

Thanks,

Fabio.




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



Re: [PHP] Dynamic variables (with method=post)

2003-03-20 Thread Fabio Bot
Thanks John,

Now it's running right.  :)

[]'s

Fabio.


"John W. Holmes" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> > How do i receive dynamic variables with POST ?
> > Please, see the code fragment.
> >
> > $ped_item = mysql_result($result, $j, 0);
> >
> > 
> > 
> >  > name=quantidade$ped_item>
> > 
> >
> >
> > "upd_item" was usually received.
> > How do i receive "quantidade$ped_item"  ?
> >
> > I have tried:
> >
> > $p1 = $_POST['upd_item'];// this is OK !
> > $p2 = $_POST['quantidade$upd_item'];// this doesn't work !
>
> I guess it would be
>
> $p2 = $_POST['quantidade'.$p1];
>
> if I'm reading correctly...
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
>
>



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