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

How to set cookies?

556


Is php case sensitive?

514


What is difference between echo and print_r in php?

495


Explain converting an object?

612


How do you check is php not empty?

549






How can you tell if a number is even or odd without using any condition or loop?

519


What is multidimensional array in php?

543


When sessions ends?

559


Can you use php and javascript together?

558


Write a program in php to reverse a number?

544


How to block direct directory access in PHP?

557


What are php variables?

515


What are helpers in php?

470


Can php run without apache?

545


Why would we use === instead of ==?

8351