[thelist] Another submit button for cancel

Adrien Leygues aleygues at gmail.com
Wed Dec 15 10:22:48 CST 2004


> On Wed, 15 Dec 2004 15:43:00 +0000, apathetic <> wrote:
> On Wed, 15 Dec 2004 09:55:55 -0000, Bird, Graham
> <Gra> wrote:

Hi,

I'm Adrien, new member on that list writing from France.

> > My current idea is to have a second submit button (valid under W3C specs)...
> > and send the user back to the page they came from if the submit value =
> > "Cancel".
> > Is this a good idea, or am I stumbling blindly into a world of pain?
> 
> There's no problem with this as long as your server side scripting
> handles both values correctly.
> 
> Alternatively, you could simply add a button with some Javascript to
> send the user to the previous page (if the cancel button only needs to
> go back without talking to the server):
> 
> <input type="button" onclick="window.history.back()" value="Cancel" />

Maybe this alternative isn't good as server side handling if the user
isn't able to handle javascript?

-- 
[ Adrien Leygues ]
http://adrien.leygues.free.fr


More information about the thelist mailing list