Vincent M. wrote:
Vincent M. wrote:
Hello,
I don't understand this code empty my HTTP_POST_VARS variable:
if ((get_magic_quotes_gpc() == 1)) {
switch ($REQUEST_METHOD) {
case "POST":
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$$key = stripslashes($val);
}
break;
Vincent M. wrote:
Hello,
I don't understand this code empty my HTTP_POST_VARS variable:
if ((get_magic_quotes_gpc() == 1)) {
switch ($REQUEST_METHOD) {
case "POST":
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$$key = stripslashes($val);
}
break;
case "GET":
whi
In article ,
[EMAIL PROTECTED] (Mweb) wrote:
> > One or more options in each select field are selected, right? Fields
> > having no values (such as unchecked radio buttons, etc.) don't get passed.
>
> Yes, I know empty values are not passed, and, yes, the options wer
> One or more options in each select field are selected, right? Fields
> having no values (such as unchecked radio buttons, etc.) don't get passed.
Yes, I know empty values are not passed, and, yes, the options were
selected (I tried with different values because I started thinking
I was having
In article ,
[EMAIL PROTECTED] (Mweb) wrote:
> foreach (var, key) in HTTP POST VARS {
>
> print "VAR: $var KEY = $key
> }
>
> It works, (meaning that php code is correct, html output is displayed,
> and no error are reported) but only prints three lines, i.e
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
In article ,
[EMAIL PROTECTED] (Jochen Kaechelin) wrote:
> Is this a secure way to check if some
> data comes from a form-field of the
> previous page,
No. But as long as the user submits all of the necessary data, and the
data passes your validation ch
10 matches
Mail list logo