Op donderdag 5 mei 2016 20:59:46 CEST schreef Per Jessen:
Wolfgang Mueller wrote:
On 05/05/16 19:08, Per Jessen wrote:
Wolfgang Mueller wrote:
By default submitting parameters to php is not possible.
Wolfang, can you explain what you mean by "submitting parameters to php"? As we are in apache mode, parameters to php are usually specified on the URL:
This URL gives an excellent example of what I mean with "submitting
parameters to php": The data submitted to phpscript are: $parm1 = "wolfgang"; $parm2 = "anton";
You access those through $_GET[]
So, if I understand you well, I have to write $_GET["parm1"] and $_GET["parm2"] instead of simply $parm1 and $parm2. Is that correct?
Yep, that is correct.
Previously, this option could be turned on by setting
register_globals = On
Register_globals is gone as of php 5.4.0.
That's a pity because the $_GET[] syntax is a little bit lengthy. Anyway, thanks a lot.
Are you new(ish) to PHP? I've been using PHP on apache for maybe ten years and I've never used "register_globals", I've always considered it a bad practice. A big +1 from me.
-- Gertjan Lettink, a.k.a. Knurpht openSUSE Board Member openSUSE Forums Team -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org