html - PHP include form trouble -


i having trouble php includes, , not entirely sure using them correctly. have far html page want add search bar to. php code in html page looks this.

<?php include 'site/tools/search.php'; ?> 

the problem having search bar not displaying on html page. know search bar works, because have browsed file location , worked actual search bar.

you cannot use php code in html documents. change extension of .html file .php , should work without affecting anything. mean links page have changed accordingly.


Comments

Popular posts from this blog

c - sscanf() double showing zeros -

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -