PDA

View Full Version : form: cancel button


sabret00the
06-10-2004, 08:49 PM
if my submit button is
<input type="submit" name="confession_report" value="delete confession" class="bginput" accesskey="s">

and i wanted the cancel button to redirect them to where they came from, would i do that via the php or the form and what would the cancel button be?
<input type="submit" name="confession_report" value="cancel_confession_report" class="bginput">
sorry should be basic stuff

tnguy3n
06-11-2004, 05:57 AM
try redirect field
<input type="hidden" name="redirect" value="yourpage.php">

sabret00the
06-11-2004, 07:41 AM
how will that work as i really need it to be a button.

tnguy3n
06-11-2004, 05:37 PM
how will that work as i really need it to be a button.

mah bad.... didn't read carefully again. :p

how about using js
<input type="button" value="Cancel" onClick="history.back()" class="button">