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
Where do we use get and post?
How to fix "headers already sent" error in php
What is a query in php?
What is the differences between $a != $B and $a !== $B?
What is the difference between static and dynamic websites?
Explain the differences between get and post methods?
What is the string concatenation operator in php?
How to find datatype of variable in php?
What is the difference between php and core php?
What is the use of header() function in PHP? What the Limitation of HEADER()?
How can we increase execution time of a php script?
How to convert a character to an ascii value?
Which of the delimiter is ASP style?
What is the purpose of the '.frm' file extension? What do thes file contain?
Is python better than php?