Re: [PHP] displaying image from MySQL DB using HTML/PHP
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Wed, 14 Mar 2007 01:30:13 -0500 (CDT)
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?
.
- References:
- displaying image from MySQL DB using HTML/PHP
- From: "Bruce Gilbert"
- Re: [PHP] displaying image from MySQL DB using HTML/PHP
- From: Jim Lucas
- displaying image from MySQL DB using HTML/PHP
- Prev by Date: Re: [PHP] 2 errors I can not understand
- Next by Date: Re: displaying image from MySQL DB using HTML/PHP
- Previous by thread: Re: [PHP] displaying image from MySQL DB using HTML/PHP
- Next by thread: Re: displaying image from MySQL DB using HTML/PHP
- Index(es):
Relevant Pages
|