|
|
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);
?> | | |
|
| PHP and javascript mouseover, mouseout, and mousedown events Categories : PHP, Java Script, Form Processing, Beginner Guides | | | Local Time clock and Server time usign PHP and JavaScript Categories : PHP, Java Script, Date Time, Beginner Guides | | | Newbie Notes #9 - Hyperlinking a post Categories : PHP, Java Script, HTML and PHP, Beginner Guides | | | enhanced date picker with jcript checking for a dynamic date input Categories : PHP, Java Script, Date Time, Calendar, Arrays | | | Simple PHP cookie counter Categories : PHP, Cookies, Beginner Guides | | | session out Timer Categories : PHP, Sessions, Security, Beginner Guides | | | How to update selected fields only Categories : PHP, Databases, Beginner Guides | | | Human readable PHP password generator Categories : PHP, Security, Beginner Guides, Arrays | | | Random text quote Categories : PHP, Arrays, Beginner Guides | | | Find the day of the week for any given year/month/day. Categories : PHP, Date Time, Data Validation, Algorithms, Beginner Guides | | | Count Number Of weeks in Month Categories : PHP, Date Time, Beginner Guides | | | How to Create a Shoutbox Using PHP & MySQL Categories : PHP, MySQL, Web Applications, Beginner Guides, HTML and PHP | | | day and week grid with clickable fields on/off and possibility to insert in DB Categories : PHP, Java Script, CSS | | | PHP3 generated gif / javascript mouseover. Categories : PHP, Java Script, MySQL | | | Simple image counter Categories : PHP, Graphics, Filesystem, Beginner Guides | |
| |
| |
|