Re: get and post together

From: Date: Thu, 09 Aug 2007 05:29:50 +0000
Subject: Re: get and post together
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-260496@lists.php.net to get a copy of this message
On Wednesday 08 August 2007 10:29:33 pm Richard Lynch wrote: > On Wed, August 8, 2007 10:18 pm, Ray wrote: > > I've done something and I want to know if I should be ashamed :) > > > > I've set up a form with method="POST" and target > > ="page.php?foo=bar" > > it works fine. $_POST[...] gives me the data I want and > > $_GET['foo']=='bar'. > > I freely admit it's an ugly kludge, but is it "bad"? > > Almost for sure that is a Documented Feature of HTTP protocol. > > I've certainly never seen it fail. > Thanks, I feel better. (I definitely realize that method = post doesn't mean ignore security) Ray > -- > Some people have a "gift" link here. > Know what I want? > I want you to buy a CD from some indie artist. > http://cdbaby.com/browse/from/lynch > Yeah, I get a buck. So?

« previous php.general (#260496) next »