No, that's not the problem, I have another functions that do work with that form name (send) ------------------------------------ I am not sure , but the form name 'send' might be a keyword in javascript, change to send1 and then test. Pl. post the result. -- Regards, Abhishek jain ----- Original Message ---- From: Jean Carlo <jsalas@xxxxxxxxxxxxxxxxxx> To: php-objects@xxxxxxxxxxxxxxx Sent: Thursday, September 25, 2008 10:50:35 PM Subject: Javascript + php problem Hi dear all! I want to after I make an if(.) if it's true call a javascript function, but it doesn't work, here is the code if ( ($this_user == $my_user)&&( $this_pass == $my_pass) ){?> <script type="text/javascri pt"> // Not work from here document.send. int_amount. readonly = false; display(0); // Function in javascript // To here </script> <?php } ?> Any idea how can make this work? [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] ------------------------------------ Are you looking for a PHP job? Join the PHP Professionals directory Now! http://www.phpclasses.org/professionals/Yahoo! Groups Links No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.7.2/1690 - Release Date: 9/25/2008 7:05 AM