+ 5
How do you link an html code and a php code
7 Answers
+ 16
By using the <?php ?> tag, make sure to configure your web server.
+ 4
need to configure the server like MAZ say
+ 2
php is a scripting language. so you can use php in anywhere in your html document by using <?PHP ? > tag
+ 2
configure ur server and use <?php?>tag in html code to write php code.
+ 2
U will be writing all ur html codes in <? php ? > tag and pages.php not html and you gonna need a local server program like xampp to test ur code!
+ 2
<HTML>
some html here
<?
and here some php code
?>
</html>
you can open the php tag in any please you want in the page code but if you don't post it in a server the code well not work
+ 1
you need a xampp or wapm server. install any one of them. ran lacalhost. write <?php (code) ?> into html.