[Tutor] Design suggestion - is a cookie the answer?

John Fouhy john at fouhy.net
Tue Jan 17 01:25:56 CET 2006


On 16/01/06, Alan Gauld <alan.gauld at freenet.co.uk> wrote:
> No. JavaScript is an event driven paradigm and it only
> picks up the explicit events you register with it(*). One of
> the problems of using CGI is the ese of frigging it. I assume
> you are using GET instead of POST? GET is the default
> submission method but POST is nearly always better and
> should avoid the problem here. (I think, I haven't tried it!)

I believe the python CGI module is submission-method agnostic --- your
code doesn't need to know or care whether the data was submitted using
POST or GET.  So, even if you are using POST, clever kids could, I
think, construct a GET url to do the same thing.

--
John.


More information about the Tutor mailing list