Using a variable in retrieving $_POST
Posted: Wed Jan 21, 2009 9:06 am
Being comletely new to PHP, I don't understand why/how these two lines are different:
It's obvious I'm missing something somewhere...
Charlie
Code: Select all
$item=1;
$merchant_product_id[$item] = $_POST["merchant_product_id1"]; #this has a value
$merchant_product_id[$item] = $_POST["$merchant_product_id".$item]; #this has no valueCharlie