Thanks all, but in a previous mail I inform that the problem was fixed, even I wrote the code. Hi dear, I would like to know when you get the correct answer is this . So please if I am right. If you have done like the below code , it just outputs the javascript . <?php 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 } ?> But doesnt call the function. So you need to call the javascript function when all the page is loaded . You can use in the body tag. onload() . Please tell if it corrects your problem . Warm regards, Hari K T Calicut KERALA. +91-9895-195901 http://www.harikt.co.nr/ http://www.ijust4u.blogspot.com/ http://www.phphelps.freezoka.com/ --- On Thu, 25/9/08, Jean Carlo <jsalas@xxxxxxxxxxxxxxxxxx <mailto:jsalas%40cyctecnologias.com> > wrote: From: Jean Carlo <jsalas@xxxxxxxxxxxxxxxxxx <mailto:jsalas%40cyctecnologias.com> > Subject: Javascript + php problem To: php-objects@xxxxxxxxxxxxxxx <mailto:php-objects%40yahoogroups.com> Date: Thursday, 25 September, 2008, 10:50 PM 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] Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ [Non-text portions of this message have been removed] No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.7.5/1697 - Release Date: 9/29/2008 7:40 AM [Non-text portions of this message have been removed]