|
|
Very often its nice to notify the user of something with an alert pop-up
Add this snippet to your common include file page
| /*************************************************************************
alert box popup confimation message function
*************************************************************************/
function confirm($msg)
{
echo "<script langauge=\"javascript\">alert(\"".$msg."\");</script>";
}//end function
and call it like this:
<?
include("common.php");
$msg = "Hello World!";
confirm($msg);
?> | | |
|
| Newbie Notes #9 - Hyperlinking a post Categories : PHP, Java Script, HTML and PHP, Beginner Guides | | | Local Time clock and Server time usign PHP and JavaScript Categories : PHP, Java Script, Date Time, Beginner Guides | | | PHP and javascript mouseover, mouseout, and mousedown events Categories : PHP, Java Script, Form Processing, Beginner Guides | | | Dynamic Calendar in PHP, Javascript and HTML. Categories : PHP, Java Script, HTML and PHP, Calendar | | | MD5 secured login Categories : PHP, Java Script, Authentication, Security | | | KuPro1.0 - This application is for Libraries, To see their books and to maintain users books. This version is in Turkish, future vers may have English Support.
Categories : PHP, Java Script, DHTML | | | Introduction to Language Files Categories : PHP, Filesystem, Beginner Guides | | | Get the self URL of current page Categories : PHP, URLs, Beginner Guides | | | Selecting a random line from a text file Categories : PHP, Filesystem, Arrays, Beginner Guides | | | Creating a Language File Categories : PHP, Beginner Guides, Filesystem | | | How to display any array in several rows and columns of a table. Not just
in one column or in alternate rows. This example shows a nice color table
generated with PHP, but can be used with any array values(e.g. Database) Categories : Arrays, PHP, Miscellaneous, Beginner Guides, Graphics | | | The toll booth Categories : PHP, Java Script, Filesystem | | | A very simple PHP single password cookie based login without usernames. Categories : PHP, Cookies, Security, Beginner Guides | | | Newbie Notes #10 - Generating drop downs Categories : PHP, MySQL, HTML, Beginner Guides, Databases | | | Dynamic generation of textboxes, select items etc in a table for use with databases applications, matrimonials and for job sites Categories : PHP, HTML and PHP, Java Script | |
| |
| |
|