Jump to content

parsing to $_POST dynamically


r-it

Recommended Posts

Hi guys, i am having a problem with $_POST. I am looking at parsing variables dynamically using post:

$txt = "txtBox";
for($i = 1; $i <= 5; $i++)
{
$txt .= "_".$i;
$var = $_POST[$txt];
echo $var;
}

the code i'm using is similar to the one above, but it does not ouptup anything, and i have tried inserting single quotes as well, please help

Link to comment
https://forums.phpfreaks.com/topic/140796-parsing-to-_post-dynamically/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.