are you talking about something like this (not valid HTML, I know):
Code:
<html>
<head>
<script type="text/javascript">
function confSubmit(form) {
if (confirm("Are you sure you want to submit the form?")) {
form.submit();
}
else {
alert("You decided to not submit the form!");
}
}
</script>
</head>
<body>
<form action="somefile.php" method="POST">
<!--Put form elements here-->
<input type="button" onClick="confSubmit(this.form);" value="Submit Form">
</form>
</body>
</html>
Note: the above is just an example to see if that is what you are talking about. Copy and paste the above code into an html file to see the results.
Hope this helps.
Bookmarks