On Tue, 5 Jun 2001, [EMAIL PROTECTED] wrote:

> Your problem seems to be in the use of single quotes see my example
> code:
> 
> $fields[3]="x";
> $postInputs{'x'}= "the_test";
> 
> print "('$postInputs{ '$fields[3]'}')";
> print "(\'$postInputs{ $fields[3]}\')";
> 
> 
> try that.

or just:

print "('$postInputs{ $fields[3]}')";

In other words, what the OP was originally doing with "('name')" is
exactly the same thing that he needs to do with a variable.

> You don't need the inner set of single quotes, and the outer set
> must be escaped.

Single quotes do not need to be escaped inside double quotes.

-- 
Ren Maddox
[EMAIL PROTECTED]

Reply via email to