This is a discussion on Getting this to work: $_POST[$val["vname"]]; within the PHP Language forums, part of the PHP Programming Forums category; I'd like to access $_POST["variablename"] where $val["vname"] is the variable name. $_POST[$val[&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'd like to access $_POST["variablename"] where $val["vname"] is the
variable name. $_POST[$val["vname"]]; gets an error message: Parse error: parse error, unexpected '[', expecting ',' or ';' in C:\Documents and Settings\ShepMode\Desktop\Websites\CGLD.net\Web\ch eckform.function.php on line 8 Is there any way to do what I'm trying to do? |
|
|||
|
Keiron Waites <webmaster@-NOSPAM-sharemonkey.com> wrote:
> I'd like to access $_POST["variablename"] where $val["vname"] is the > variable name. $_POST[$val["vname"]]; gets an error message: > > Parse error: parse error, unexpected '[', expecting ',' or ';' in > C:\Documents and > Settings\ShepMode\Desktop\Websites\CGLD.net\Web\ch eckform.function.php on > line 8 Shouldn't be any problem and works here - could you post the complete code section? JOn |