Location: PHPKode > scripts > PHP-Gtk winDialog > php-gtk-windialog/how_to_use.txt
Class winDialog
********************
In all applications users need to receive messages according their requests and interactions with the program. On the client-side  when we to do some kind of search  print something, these windows will tell us if processes occurred with success or not. For example to evaluate if a field was empty, on the server-side we do something like this:
<?php
$name = $_POST['name'];
if(emtpy($name))
{
echo "The field name is empty !\n Please fill your name !";
}
?>

On the client side the process is the same, but the message is not echoed on the browser but on the warning message. The code result will be something like this, if you was using the Class winDialog 

<?php
$name = $_POST['name'];
if(emtpy($name))
{
$popUp = new winDialog('winDialog','hide', "The field name is empty !\n Please fill your name !";
}
?>


The result will be a pop up window

Objective 
*************
This class has been developed to be used on PHP-GTK applications. It can be used to show the messages status of the processes on the program as the example i show you  back.


This is just a simple demo that can used freely under Property Licence.
Read about it at http://www.opensource.org/licenses/artistic-license.php 

If you are thinking on use this class all you need to do is maintain the next header near the code class

/*****************************************************
  *@ Package   Class winDialog                 *
  *@ License   Property License                 *
  *@ Language  php(4.4.1.1)-GTK               *
  *@ Author   Guto Ferreira (Onidesk ICS)  *
  *@ Email    hide@address.com      *
  *@ Web      http://onidesk.sytes.net          *
  *****************************************************/  


Return current item: PHP-Gtk winDialog