Changing values of $_POST considered bad style?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • petermichaux@yahoo.com

    Changing values of $_POST considered bad style?

    Hi,

    I thought that $_POST was read only. I just descovered I can change the
    values of it's elements. Is this considered bad style? Seems like this
    might be something that is outlawed in the future.

    Thanks,
    Peter

  • ZeldorBlat

    #2
    Re: Changing values of $_POST considered bad style?

    I don't think there's any inherent restrictions on the superglobal
    arrays -- they're the same as any other array.

    I suppose it doesn't hurt anything if your code is well thought out,
    but I would avoid doing it just because it can lead to confusion and
    bugs in your code.

    Comment

    • Obvious

      #3
      Re: Changing values of $_POST considered bad style?

      On 15 Sep 2005 18:27:31 -0700, ZeldorBlat wrote:
      [color=blue]
      > I don't think[/color]

      Obviously not. learn to quote what you are replying to, please.

      Comment

      • petermichaux@yahoo.com

        #4
        Re: Changing values of $_POST considered bad style?

        Hi ZeldorBlat,

        Thanks for the opinion! (I don't know why Obvious is so torqued.)

        Peter

        Comment

        Working...