Can anyone show me how to call a function when submit is pressed or a form is submitted. I am for an alternative to $php_self which refreshes the whole page. I want to run the function which displays the errors on a form and only do a $php_self when the form is filled out correctly. thanks Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php