[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
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;

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
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

[PHP] Re: HTTP_POST_VARS truncated

2001-11-30 Thread CC Zona
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

[PHP] Re: HTTP_POST_VARS truncated

2001-11-30 Thread mweb
> 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

[PHP] Re: HTTP_POST_VARS truncated

2001-11-30 Thread CC Zona
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

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-16 Thread Henrik Hudson
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

[PHP] Re: HTTP_POST_VARS and eval?

2001-11-16 Thread George Whiffen
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 '

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
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[

[PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Richard Lynch
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

[PHP] Re: $HTTP_POST_VARS

2001-09-12 Thread CC Zona
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