how do i refer to _POST["indexdate"] from php code

A

Anonymous

Guest
i have a php variable _POST["indexdate"] (in phpinfo). I need to refer to it from php code. the problem is the text "indexdate" is two variable. One "index" static variable and the other "date" a dinamic variable from $row['Column_name'].
I am trying $_POST['index'.$row['Column_name']] which is not working.. Any idea? :idea:
 
phpmon said:
I am trying $_POST['index'.$row['Column_name']] which is not working.. Any idea? :idea:

I can't imagine why this wouldn't work. Are you sure that $row['Column_name'] has the value you expect it to?
 
Is $_POST['index'.$row['Column_name']] not missing a magical little . at the end of it ? To make it read:

Code:
$_POST['index'.$row['Column_name'].]

Any better?
Andrew
 
bezmond said:
Code:
$_POST['index'.$row['Column_name'].]

I think this would throw an error, as there's no expression after the '.' to append to the end of the expression. The concatenation operator assumes that there will be an expression before and after it.
 
Back
Top