You are here: good code, bad code, magic code « PHP Programming Language « IT news, forums, messages
good code, bad code, magic code

Posted by Mark on 02/25/06 01:40

i've discovered (on my server) that it doesn't seem to be necessary to
call data from a form via $_POST, or to retrieve cookies via $_COOKIE,
and other such things; they are available by name alone. however, i've
heard that just because you CAN do something, doesn't mean you SHOULD.
my question: is this considered bad practice?

also, when submitting a file via <input name="file" type="file" /> i
find that not only does $file get set, but $file_name and others also
"magically" get set... I guess I just find that odd coming from C++
where nothing seems to do work for you... quite nice and handy though :)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация