Re: displaying image from MySQL DB using HTML/PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, March 13, 2007 9:07 pm, Jim Lucas wrote:
> DON'T USE REQUEST
> only use it from where you expect it to be, in this case, $_GET

Unless you actually WANT your web application to be flexible and allow
other users to have links or POST forms to interface with it...

It's not like you can trust the data of POST or GET any more or less
than the other, really.

They both come from the big bad internet world outside, and are
equally suspect.

I'm just suggesting that not using REQUEST is not an absolute.

In this particular scenario, it's hard to imagine why you'd want a
JPEG as a response to a POST, of course, so definitely use $_GET here.

But if you have a web app that works equally well for other pages to
link to, or to send POST data to, using REQUEST is quite nice, imho.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux