Could anyone explain to me how to declare a PHP function? Every time I try to use functions in PHP I get an error telling me that I have an undeclared function. I usually have to resort to a javascript function and pass the information I need via a hidden form field. I have SitePoints book Using PHP & MySQL, but I need an explanation on this. Thanks in advance. hradams