From: Jonathan S. <jn...@ge...> - 2004-08-09 11:39:44
|
On Fri, 2004-08-06 at 18:23, webmaster wrote: > I'm testing TFmail.pl, and have got it to work when I use a contact > form. The message is sent, the success page is presented to the client. > But I'm trying to account for all posibilities. Suppose someone > bookmarks the page to remind themselves of their message, and tries to > return to it in a later browser session? Here's the error that comes up: > > > Application Error > > An error has occurred in the program > > request method must be "POST" at /home/julie/bonfete/cgi-bin/TFmail.pl > line 116. > > > Has anyone come up with a more graceful way to handle this problem? I > suppose I could configure Apache to diallow any method but post on the > script, but that just replaces one error message for another. To be honest there is one school of thought that suggests that we are being too nice as it is - that the program should simply give the appropriate status code for "Request method not allowed" and let the server decide what to do. However I have considered that it might be useful to actually be able to specify a template that can be used for a GET request - this could simply be the form itself or something else. The problem with these things is that it seems that none of the developers have much time for anything other than urgent bug-fixes at the moment - I have copied the developers list in case there is anyone with spare time. /J\ |