Answer Posted / webguy
Mukesh(watch out for syntax errors) and atanu are right.
VIvek seemed have misunderstood the question. It's more of
injecting JS code within PHP code segment like this:
<?php
echo "<script type='text/javascript'>";
echo "alert('jams bond');";
echo "</script>";
?>
OR
<?php
echo "<script type='text/javascript'>alert('jams
bond');</script>";
?>
Is This Answer Correct ? | 24 Yes | 8 No |
Post New Answer View All Answers
How can I make a script that can be bilingual (supports english, german)?
Tell me how to find current date and time?
Can php use gettext?
What is an associative array?
Give the case where we can use get and we can use post methods?
What does the function get_magic_quotes_gpc() means?
What is mysqli_query?
Explain how can php and javascript interact?
What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?
How To Get the Uploaded File Information in the Receiving Script?
How would you determine the size of a file in php?
Why do we need session?
Can php replace javascript?
Which php framework is best for web development?
What is difference between action hook and filter hook?