Re: get and post together

From: Date: Thu, 09 Aug 2007 04:00:09 +0000
Subject: Re: get and post together
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260478@lists.php.net to get a copy of this message
On 8/9/07, Ray <ray@stilltech.net> wrote: > Hi all, > 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"? I do this all the time and I'm not ashamed! I don't think it is particularly ugly either :-) From a security POV, just be sure to validate all user input regardless of where it comes from, as you would any normal request.

« previous php.general (#260478) next »