durusmail: quixote-users: Checking if a form value came from POST or GET
Checking if a form value came from POST or GET
2003-10-13
2003-10-13
2003-10-13
2003-10-14
2003-10-14
Building scgi - lots of errors
2003-10-16
2003-10-16
2003-10-17
2003-10-22
2003-10-22
2003-10-14
Checking if a form value came from POST or GET
amk@amk.ca
2003-10-13
On Tue, Oct 14, 2003 at 12:26:42AM +0100, Simon Willison wrote:
> That would be ideal. I simply want to be able to specify "the 'id'
> paramater that came in via POST" as opposed to "the 'id' paramater that
> came in via GET". In PHP form variables are made available in two

I'm unsure if this is really appropriate.  A long time ago I tried to figure
out if the HTTP + HTML standards actually made this usage legal, and
couldn't parse that meaning out of the documents.  Therefore I deliberately
wrote the parsing code so that it ignored the query string on POSTs.  This
property of the Quixote code may have subsequently changed, whether
deliberately or not, but it still strikes me as dodgy practice and one that
should be avoided.

Can we find an interpretation of the HTTP RFC which allows this usage?  That
PHP supports this division, or that existing web browsers support it, isn't
really evidence one way or the other.

--amk

reply