Script Style

Author Topic: Script Style  (Read 887 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
2 Replies
3150 Views
Last post 12-18-2017, 08:39:10
by lebar.123
0 Replies
1226 Views
Last post 04-12-2013, 04:09:21
by GeorgeKappa
0 Replies
1109 Views
Last post 08-20-2016, 05:10:57
by beingchinmay
1 Replies
1438 Views
Last post 12-03-2016, 01:37:01
by saravjeet
3 Replies
1439 Views
Last post 01-09-2018, 23:04:11
by RH-Calvin