Re: Create Popup Window using PHP
| From: | pete M | Date: | Thu, 23 Oct 2003 09:51:47 +0000 |
| Subject: | Re: Create Popup Window using PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167243@lists.php.net to get a copy of this message | ||
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 ;-)
irinchiang@justeducation.com wrote:
Hi all,I have a "Delete" function here whereby when I click on "Delete" it willactually 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