This isn't really a PHP question, it's an HTML/JS question. Without the code, it's going to be impossible to figure it out exactly, but this isn't exactly the place for it either. That said, my first order of business would be to confirm the JS file is, in fact, being loaded, and then make sure all the fields you are validating have the same names in both files (or that the actual JS code takes it into account)... but impossible to discern without the code. -D. Israel dan@xxxxxxxx http://www.customcodebydan.com AIM: JudoDanIzz > -----Original Message----- > From: Charles Pelkey [mailto:pelkeyc@xxxxxxxxx] > Sent: Thursday, January 10, 2008 6:10 AM > To: php-objects@xxxxxxxxxxxxxxx > Subject: Re:calling javascript file in php > > Two questions: > 1. are both PHP files in the same directory? > 2. Do you get a js error icon at the bottom of your browser? > > It sounds like the second script can't find the js file... > > -Charles > > > > _______________________________________________________________________ > _____________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > Are you looking for a PHP job? Join the PHP Professionals directory > Now! > http://www.phpclasses.org/professionals/ > Yahoo! Groups Links > > >