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
What are the uses of implode() function?
How to remove duplicate values from a PHP Array?
What is a session in php?
What are encryption functions in php?
How to get the directory name out of a file path name?
Is empty in excel?
What is a helper function?
What is difference between session_unset and session_destroy?
What language is php based on?
Why and where do we use htaccess?
What is the use of ajax in php?
How big is varchar max?
How many keywords are there in php?
What is php how it works?
What is a stored procedure in mysql?