Re: Newbie Question

From: Garp (garp7_at_no7.blueyonder.co.uk)
Date: 04/14/04


Date: Wed, 14 Apr 2004 11:53:09 GMT


"AzRael" <socken@gmx.ch> wrote in message
news:7j5q70lq9srl1td68k54adbupptgb2g05p@4ax.com...
> On Wed, 14 Apr 2004 12:21:23 +0200, Henk Burgstra <egosum@xs4all.nl>
> wrote:
>
> >Search the archives for register_globals
> >Basically, you have to change
> >echo $textfield
> >to
> >echo $_POST['textfield'];
> >
> >Regards,
> >Henk Burgstra
> >
>
> Hey thanks alot!!!
> It works!!
>
> I guess it's more secure to write $_POST['textfield'] instead of
> chanigng the register_globals...
> Becuase I could change these settings, but of course, if I upload my
> files on a different server and the settings there are different....
>
> Again, thanks!!
>
> Regards
> AzRael

Please don't change register_globals, it's only really still there to enable
old code to work (written back when it defaulted to 'on'). Globals are bad,
m'kay?

Garp



Relevant Pages

  • Re: Newbie Question
    ... I guess it's more secure to write $_POSTinstead of ... chanigng the register_globals... ... Becuase I could change these settings, but of course, if I upload my ...
    (comp.lang.php)
  • Re: app.config is breaking my windows service?
    ... Service....there are settings which I will change from dev to production ... I can't do that with the entire app.config file when it has alot /lotta ... Which is missing the <connectionStrings> element entirely! ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Hyper-Threading and Reduced Performance
    ... settings on the computer, or will my current settings remain. ... asking, as that is alot of .PNF files, just in case that is it.... ... a regular video card, ...
    (microsoft.public.windowsxp.hardware)
  • Re: Whats a "how to" book for XP?
    ... > know alot about dos or how to write scripts. ... > default settings. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Whats a "how to" book for XP?
    ... > know alot about dos or how to write scripts. ... > default settings. ...
    (microsoft.public.windowsxp.general)