Script Style

Author Topic: Script Style  (Read 612 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Fat Cutter
Script Style
« on: 08-24-2016, 07:07:44 »
The final method of distinguishing PHP from HTML involves a tag invented to allow client-side scripting within HTML pages, the <script> tag. You might recognize it as the tag in which JavaScript is embedded. Since PHP is processed and removed from the file before it reaches the browser, you can use the <script> tag to surround PHP code. To use this method, simply specify "php" as the value of the language attribute of the tag:

Quote
<script language="php">
echo "Hello, world";
</script>

This method is most useful with HTML editors that work only on strictly legal HTML files and don’t yet support XML processing commands.


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2208 Views
Last post 10-08-2011, 03:53:30
by Walalayo
0 Replies
1535 Views
Last post 11-03-2011, 04:39:27
by manvbf
0 Replies
1075 Views
Last post 04-12-2013, 04:09:21
by GeorgeKappa
0 Replies
826 Views
Last post 08-20-2016, 05:10:57
by beingchinmay
1 Replies
1045 Views
Last post 12-03-2016, 01:37:01
by saravjeet