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
Martin Maney
2003-10-14
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 think half the trouble is that you're pissing into the wind using GET
variables in the first place.  The quixotic idiom isn't 'form?id=1',
but 'form/id=1', or 'form/1', or maybe even just 'form1'.  IMO, anyway.

> values from cookies as well). I'm just far more comfortable if I know
> the method in which an individual piece of data arrived at my script.

Whatever.  It comes from an untrusted source in either case, so if
that's all you have between you and disaster it seems a thin. cold
comfort at best.

--
The most common implementation of SMTP is contained in sendmail.
This program is included free in most UNIX software distributions,
but you get less than you pay for.  -- Cheswick, Bellovin & Rubin


reply