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 cookies are trported from browsers to servers?
What is php variable?
How many ways to include variables in double-quoted strings in php?
What is == and === in php?
Can you pass an array into a function?
What is the difference between characters 34 and x34?
What is url encoding and decoding in php?
Why use php artisan serve?
Tell me how is it possible to know the number of rows returned in result set?
What does $_server mean?
What is php's mysqli extension?
Can you define an array argument as a reference type?
What should we do to be able to export data into an excel file?
What is php programming used for?
Are sessions stateless?