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
Explain what does the function get_magic_quotes_gpc() means?
How to remove leading and trailing spaces from user input values in php?
How can we know the total number of elements of Array?
What is difference between put and post method in http?
Tell me what is the default session time in php?
Do you know how can php and html interact?
What is mysql_fetch_object?
What is the best php version for wordpress?
What is the use of the function htmlentities?
Is php still relevant 2019?
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
What is the scope of a variable defined in a function?
How do you remove duplicates from an array?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
How can we set and destroy the cookie in php?