I have an HTML page "mcqs.html" and from that page I want to go to the index.php page which is in php. In HTML <a href="about.html"> About </a>
works fine.
But this doesn't seem working when I include a link for a .php page <a href="about.php"> About </a>
. Need some guidance to solve this problem.
Make sure the extensions of the file. Example if you have mcqs.html then you should write
<a href="mcqs.html">Page Title</a>
make sure the the file is one directory in mcsql.html and index.html.. If not,you should up the directory until you reach the file using ../ (It's mean up one directory)
</div>
For running a php file you must have installed a server stack such as Wamp (Windows) or Lamp (Linux) and after that move your folder to the www folder and then try this in your html file and this should work.
<a href="about.php">About</a>
If I am not mistaken your question, its a pretty simple things. Just use following link-
Add following code in mcqs.html page.
<a href="index.php">Go to Index Page</a>
Hope, will work perfectly for you.
Make sure that the server that you are using is supported by PHP