How can a cross-site scripting attack be prevented by php?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

what is Opern source?

3 Answers  


How to randomly retrieve a value from an array?

0 Answers  


What is deffience betwwen get() , Post , Request()

3 Answers  


How does php sessions work?

0 Answers  


<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->

1 Answers  






How to create a table to store files?

0 Answers  


What is rest api in php?

0 Answers  


Specify pre-defined classes in php ?

1 Answers  


What is c++ polymorphism?

0 Answers  


What are differences between PECL and PEAR?

0 Answers  


in PHP for pdf which library used?

0 Answers  


How do you check if a variable has been set in php?

0 Answers  


Categories