How to embed PHP into html
<html><head>
<title>html embeded code</title>
</head>
<?php
echo "welcome to the php";
echo "<br />";
echo "Html and php script embed<hr>";
echo "<b>"."hello friends"."<b>";
?>
<body>
</body>
</html>
Explanation
You can put your PHP script anywhere in our html code. Above example explain the following concept.Another example of php into the html
<html>
<head>
<title>
<?php
echo "Title of your page";
?>
</title>
</head>
<body>
<?php
echo "welcome to the php";
echo "<br />";
echo "Html and php script embed<hr>";
echo "<b>"."hello friends"."<b>";
?>
</body>
<?php
echo "web come to php" ?>
</html>
explaination
Note :You can put php script any number of times in your html page like that.
If you want to learn more about visit
php tutorial
Download PHP PDF php basic tutorial
No comments:
Post a Comment