|
Posted by Kimmo Laine on 10/19/06 09:45
<emilia.woo@gmail.com> wrote in message
news:1161250908.553940.206610@h48g2000cwc.googlegroups.com...
> Oh, I find out!.
> it's just
>
> <input type="button" onclick="practice( '<? echo $ex; ?>' ); ">
>
> right?
Yes, that works. You can assign javascript variables with php like that,
just remember that it doesn't work the other way though, you can't assign
php variables with javascript. :)
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|