Thanks. It actually turned out that I wanted to do just:
$HTTP_POST_VARS[\\1]
in the regex (ie: removing the quotes entirely inside the array)
and it works just fine. Thanks for the info however.
On Friday 16 November 2001 09:37, George Whiffen wrote:
> Henrik,
>
> I think your problem is jsi
Henrik,
I think your problem is jsimply that you are not getting variable substitution
of $HTTP_GET_VARS["whatever"] inside double quotes.
print "whatever is $HTTP_GET_VARS["whatever"]";
is not safe.
You need
print "whatever is {$HTTP_GET_VARS["whatever"]}";
or, (IMHO better),
print '
Thanks for the help on this.
The file it's reading in:
-
An example form has been submitted.
Name: ]name[
Email: ]email[
The user made the following comments:
]comments[
Just in case we forget, the users name is ]name[ and their email is ]email[
Henrik Hudson wrote:
> So, its having problems doing an eval on the HTTP_POST? If I replace the
> HTTP_POST stuff with just$\\1 and then define $string =
> $HTTP_POST_VARS["string"] it works just fine, but I can't do this since I
> don't know what string is going to be, just that it is betwe
4 matches
Mail list logo