[prog] PHP and cancel buttons

dave lc at syberdave.net
Tue Jun 29 20:23:59 EST 2004


> I'm not positive, but I believe you can do something like this
> (if this is indeed what you are trying to do):
> 
> 	<form method="post" action="" onsubmit="history.back(1)">
> 		<input type="submit" value="Cancel">
> 	</form>

If you don't want to start a new form, you can use:
	<input type="button" value="Cancel" onClick="history.back()">

-Dave


More information about the Programming mailing list