How can you insert javascript in php code?

Answer Posted / sivarajan

<?php echo "<script>alert('Insert Javascript in PHP');
</script>"; ?>

Is This Answer Correct ?    55 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I write php code in html file?

541


What will the ?getdate() function returns in PHP?

646


What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?

520


How to get the value of current session id?

538


How variables are passed through arguments?

558






What is new keyword in php?

540


Is it more secure to use cookies to trfer session ids?

521


What is the difference between include and require?

530


How does php work?

540


Which parts of php are case sensitive?

499


Explain how you can update memcached when you make changes to php?

565


Explain $_FILES Superglobal Array?

589


Does facebook use php framework?

560


How to increase the execution time of a PHP script?

531


What is PHP? Who is the father or inventor of PHP?

617