<?php $products = "Welcome To Pakainfo.com"; ?> <script> alert("<?php echo $products; ?>"); </script>
The above source code alerts the date. The above date is a php date function.
Initially, The php server executes the above code and treat JS code as plain text.
and will looks like below when it comes to client/ browser
client/ browser view source code
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.
Here are some more FAQ related to this Article: