Script Style

Author Topic: Script Style  (Read 700 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
2261 Views
Last post 10-08-2011, 03:53:30
by Walalayo
0 Replies
1117 Views
Last post 04-12-2013, 04:09:21
by GeorgeKappa
0 Replies
918 Views
Last post 08-20-2016, 05:10:57
by beingchinmay
1 Replies
1172 Views
Last post 12-03-2016, 01:37:01
by saravjeet
0 Replies
330 Views
Last post 07-26-2017, 03:05:01
by sonakshibhathi