PHP in HTML
Once you learn PHP script in javascript. Now you will learn PHP in HTML. PHP is a programming language embedded program, meaning that PHP language can be inserted into the HTML language. The server will process existing script between the tags and ?> As PHP.
For example, you please open your notepad or notepad ++ then typing the following listings:
<html>
<head>
<title>Welcome At FajarYusuf</title>
</head>
<body>
<?php
echo “Selamat datang di pembelajaran PHP FajarYusuf<br>”;
echo “Skrip PHP didalam tag HTML”;
?>
</body>
</html>
As in the script above, when the server receives the file and see there is a tag PHP then PHP processing engine that will run it. Display in the browser will be as follows.
Next, you can learn HTML in PHP.
Spread the love