confirmation dialog on a submit button

Try this if you are typing the html
<input type="submit" value="submit" onClick="return
confirm('sentence?');">
if you are using the submit_tag helper method, I believe you can just
add the :confirm to it.

Fredrik