> How do i receive dynamic variables with POST ?
> Please, see the code fragment.
> 
> $ped_item = mysql_result($result, $j, 0);
> 
> <form name=form_$ped_item method=post action=pedido.php>
> <input type=hidden name=upd_item value='$ped_item'>
> <input type=text size=7 maxlength=7 value=$ped_qtde
> name=quantidade$ped_item>
> </form>
> 
> 
> "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

Reply via email to