+ 5

How do you link an html code and a php code

20th Aug 2017, 11:26 AM
Tahiru
7 Answers
+ 16
By using the <?php ?> tag, make sure to configure your web server.
20th Aug 2017, 11:28 AM
Maz
Maz - avatar
+ 4
need to configure the server like MAZ say
20th Aug 2017, 11:38 AM
Carlos Castro
Carlos Castro - avatar
+ 2
php is a scripting language. so you can use php in anywhere in your html document by using <?PHP ? > tag
20th Aug 2017, 11:41 AM
fsuuaas
fsuuaas - avatar
+ 2
configure ur server and use <?php?>tag in html code to write php code.
20th Aug 2017, 2:18 PM
Zaheer Ahamad
Zaheer Ahamad - avatar
+ 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!
21st Aug 2017, 6:33 AM
Ahmad Gamal Fath-Allah
Ahmad Gamal Fath-Allah - avatar
+ 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
21st Aug 2017, 2:46 PM
Mohamed Handa
Mohamed Handa - avatar
+ 1
you need a xampp or wapm server. install any one of them. ran lacalhost. write <?php (code) ?> into html.
20th Aug 2017, 3:20 PM
Faisal Ahmed
Faisal Ahmed - avatar