English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a PHP variable : $myVariable="Hello";
And a JavaScript Function: myFunction(s){
alert (s);
}
But i can run it when i put it on body tag:
)>

Can you help me?Thanks

2006-08-16 09:37:41 · 2 answers · asked by na l 1 in Computers & Internet Programming & Design

2 answers

it looks like you have it right. you just need to inclose the PHP variable that is echoed in quotes like:

2006-08-16 09:44:14 · answer #1 · answered by John J 6 · 1 0

)>

2006-08-16 09:45:20 · answer #2 · answered by Adam 2 · 0 1

fedest.com, questions and answers