如何创建到另一个PHP页面的链接 [英] How to create a link to another PHP page
问题描述
我只是将我的一些 HTML
页面转换为 PHP
页面,而我对 PHP
。在我的 HTML
页面中,假设它只是一个静态Web应用程序,我可以通过播放以下 anchor
在页面上:
< a href =go-to-this-page.html>这是一个链接< / a>
因此,在将页面转换为 PHP
确信我可以更容易和更快地模板和包含模板,我不知道如何包含这些链接。
index.php
和 page2.php
。如何创建一个锚链接到这个页面? < a href =??????>这是一个link< / a>
感谢您的帮助!
< a href =index.php> Index Page< /一个>
< a href =page2.php>第2页< / a>
I just converted some of my HTML
pages to PHP
pages, and I'm not that familiar with PHP
. In my HTML
pages, assuming it's just a static web app, I can link to another page quite simply by playing the following anchor
on the page:
<a href="go-to-this-page.html">This is a link</a>
So, after converting the pages to PHP
in order to make sure that I can template and include templates a bit easier and faster, I don't know how to include these links.
For example, say I have two pages, index.php
and page2.php
. How would I create an anchor link to this page?
<a href="??????">This is a link</a>
Thanks for any help!
Use like this
<a href="index.php">Index Page</a>
<a href="page2.php">Page 2</a>
这篇关于如何创建到另一个PHP页面的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!