Dynamic variables (with method=post)
| From: | Fabio Bot | Date: | Wed, 19 Mar 2003 21:08:28 +0000 |
| Subject: | Dynamic variables (with method=post) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140365@lists.php.net to get a copy of this message | ||
Hi,
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 !
Thanks,
Fabio.