i am calling a javascript function within a php file in that manner
Code: Select all
echo '<script language="javascript">myfunction()</script>';But when i try to pass a parameter it doesnt work.
Code: Select all
echo '<script language="javascript">myfunction($row[price])</script>';in the first case the function is
Code: Select all
function myfunction(){
alert("Hallo");
}Code: Select all
function myfunction(x){
alert(x);
}any ideas?