Re: calling javascript

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The idea is very simple. It just needs you to know the concepts.

On the form processing page whenever u find an error just print or echo this : 
<script type="text/javascript">
err_popup();
</script>

e.g. <? if( empty($_POST['firstName']) )
           {
             echo "<script type=\"text/javascript\">";
             echo "err_popup();";
             echo "</script>";
           }
       ?>

Given that the definistion of the JS err_popup() function has been
done in the header part of the markup

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux