Posted by Garry Jones on 04/16/06 15:59
Depending on certain other conditions I need to read in a specific input
name from a form.
This works...
$works=$_POST['realname'.];
But occasionally there is a value of x in this name that can be changed by
other conditions.
When processing the form I can not get this syntax right. I have tried these
variations.
$test1=$_POST['realname'.$x];
$test2=$_POST['realname' & $x];
$test3=$_POST["'realname' & $x"];
$test4=$_POST['realname$x'];
$test5=$_POST['realname'$x];
$test6=$_POST["'realname'" & "$x"];
Any ideas of the syntax when including a variable x in a $post input
reading?
Garry Jones
Sweden
[Back to original message]
|