By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,077 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,077 IT Pros & Developers. It's quick & easy.

Changing values of $_POST considered bad style?

P: n/a
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

Sep 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

Sep 16 '05 #2

P: n/a
On 15 Sep 2005 18:27:31 -0700, ZeldorBlat wrote:
I don't think


Obviously not. learn to quote what you are replying to, please.
Sep 16 '05 #3

P: n/a
Hi ZeldorBlat,

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

Peter

Sep 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.