[snip] I want to call a javascript function: function error_popup() { newwin = window.open("error_popup.php","sss","height=470,width=450") } from within my php code. How do I go about called this function? [/snip] You have to echo or print out the javascript using PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php