By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,642 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,642 IT Pros & Developers. It's quick & easy.

Getting this to work: $_POST[$val["vname"]];

P: n/a
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?
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.