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
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
How can cross site request forgery csrf be prevented?
How can we create a database using php?
Explain what is the use of "echo" in php?
Define urlencode() and urldecode() used in php?
How to write php function in html onclick?
What is $row in php?
How arrays are used in php?
How to run the interactive php shell from the command line interface?
What is php and what does it do?
What is polymorphism with example in php?
Which php framework is best for beginners?
Explain me how failures in execution are handled with include() and require() functions?
What is the importance of "method" attribute in a html form?
Will a comparison of an integer 12 and a string "13" work in php?