Hi,
I have a variable in php
(Output from a text area)
I want to pass this variable to a javascript function
I have write this in my php file
but this makes an error "Unterminat ed string literal" How can i solve this issue ??
I have a variable in php
Code:
$test = "This is a string It has multiple lines there are three total" ;
I want to pass this variable to a javascript function
I have write this in my php file
Code:
<?php echo "<script language=javascript>convert('$test');</script>"; ?>
Comment