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

Which character is used to match exactly one character?

547


Tell me what types of loops exist in php?

570


Explain how we can retrieve the data in the result set of mysql using php?

502


What is cakephp framework?

530


What is the use of extract function in php?

511






Is facebook still written in php?

553


Which escape sequences can be used in single quoted strings in php?

527


What is difference between include,require,include_once and require_once()?

528


What is print_r?

512


How can image properties be retrieved in php?

543


Is age interval or ordinal?

520


Explain Whitespace Characters?

581


Explain converting an object?

612


What is default session time and path in php?

543


What is the difference between runtime exception and compile time exception?

541