Re: Create Popup Window using PHP

From: Date: Thu, 23 Oct 2003 10:46:10 +0000
Subject: Re: Create Popup Window using PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167247@lists.php.net to get a copy of this message
I use something like: <a href="delete.php?id=123" onclick="return myconfirm('Do you ... ?',this.href)"> <script> function myconfirm(str, href) {
    if(!confirm(str)) {
        return false;
    } else {
        document.location.href=href + "&confirm=1";
    }
} </script> In delete.php check for $_GET['confirm'], if set, delete, if not, display plain old html yes/no confirmation page, yes link will have &confirm=1 added to the current location. irinchiang@justeducation.com 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


« previous php.general (#167247) next »