How can you insert javascript in php code?

Answer Posted / mukesh purohit

<?php
echo "<srcipt type='language'>";
echo "alert('jams bond');";
echo "<script>";
?>

Is This Answer Correct ?    23 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove blank spaces from the string?

532


Explain me what is the use of header() function in php?

619


What is restful api?

504


iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not

1449


Which framework is best for php?

501






How do you access a get requests url parameter with php?

534


What is xss and csrf?

520


How can you retrieve a cookie value?

539


What is Different between Joomla And Magento?

2271


What is array function in javascript?

509


What is chrome logger?

556


How to pass an argument to a function?

547


How to get a total number of rows available in the table?

481


What's the best method for sanitizing user input with php?

489


What are Routines?

1776