The Snippets Thread
04-12-2012, 07:28 AM, (This post was last modified: 04-12-2012, 07:29 AM by Arthur.)
#9
RE: The Snippets Thread
PHP function to add a JavaScript alert ($id allows you to give it an identifier so you know which it is [perhaps a later version will allow auto-numbering]):
PHP Code:
function alert_flag($id=false){
    if (
$id){
        
$flag ' Flag: '.$id;
    }
    echo 
'<script type="text/javascript">alert("Is this active?'.$flag.'");</script>';

Reply


Messages In This Thread
The Snippets Thread - by MyDigitalpoint - 08-15-2011, 12:00 PM
RE: The Snippets Thread - by HiddenKnowledge - 10-02-2011, 11:35 PM
RE: The Snippets Thread - by MyDigitalpoint - 10-20-2011, 08:24 AM
RE: The Snippets Thread - by Zach - 10-20-2011, 09:37 AM
RE: The Snippets Thread - by Arthur - 10-27-2011, 01:40 PM
RE: The Snippets Thread - by Zach - 10-27-2011, 02:42 PM
RE: The Snippets Thread - by Arthur - 10-27-2011, 09:01 PM
RE: The Snippets Thread - by Serial Thrilla - 01-18-2012, 02:33 AM
RE: The Snippets Thread - by Arthur - 04-12-2012, 07:28 AM

Forum Jump: