need a little bit of "Javascript"

Here's a cut and paste from one of my projects


<script language="JavaScript">
function confirmEdit()
{
var f = document.frmEdit;
if(confirm('Are you sure you want to save the changes. This operation CANNOT BE REVERSED'))
{
f.submit();
}


}
</script>

and then a button instead of submit

<form name="frmEdit" action="save.php" method="post">
<input type="text" name="name">

<input type="text" name="address">

<input type="button" name="Button2" value="Save Changes" class="butt" onClick="confirmEdit()">

</form

Hope it helps

Pete ;-)



[EMAIL PROTECTED] wrote:


Hi all, I have a "Delete" function here whereby when I click on "Delete" it will
actually have some kinda "popup" window to prompt user whether they are sure to
delete the following data.....So, anyone have any idea how to create this popup
window using PHP??????


Appreciate very much for any help given....=)

Regards, Irin

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to