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
Simon Willison
2003-10-13
Neil Schemenauer wrote:
>>Are there any plans to add this capability in a future release of
>>Quixote?>
>
> I'm not sure exactly what you want.  If you want POST and GET
> variables to be stored separately then I don't think it will happen.
> I suppose HTTPRequest could have 'post_form' and 'get_form' and have
> 'form' be the union of the two.

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
dictionaries: $_GET for query string variables and $_POST for posted
variables. A third dictionary, $_REQUEST, merges the two (and adds
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.

Cheers,

Simon Willison
http://simon.incutio.com/



reply