Re: Javascript + php problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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> wrote:
From: Jean Carlo <jsalas@xxxxxxxxxxxxxxxxxx>
Subject:  Javascript + php problem
To: php-objects@xxxxxxxxxxxxxxx
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]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux