Re: Javascript + php problem

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

 



Hi all.
I'm not a spécialist, so i don't understand why you don't simply echo 
your javascript script like this:

if ( ($this_user == $my_user)&&($this_pass == $my_pass) ){

echo "
<script type="text/javascript">

// Not work from here

document.send.int_amount.readonly = false;

display(0); // Function in javascript

// To here

</script>
";

} ?>


It sounds me strange things to "break" an if instruction as you do. It 
this thing possible in php? (For my personnal knowledge).
Thanks in advance.



Jean Carlo a écrit :
>
> 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
>
>
> Any idea how can make this work?
>
> [Non-text portions of this message have been removed]
>
>  


-- 
A+
Gilles


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

  Powered by Linux