我正在尝试在主页上创建一个链接,该链接将链接到包含多个切换的服务页面。我想根据他们在主页上选择的链接打开一个特定的切换。
以下是我在主页上的服务页面链接(我知道我需要一些after/services来告诉功能打开切换):
<a href="http://www.debdweb.com/test/services">Go to Service 1 (open)</a>
以下是我在服务切换页面上为其中一个切换提供的内容:
<div class="service-box">
<div class="separator8"></div>
<ul class="service_list">
<li>
<h6><a href="#Service1" class="toggle-link tog1">Service 1</a></h6>
<div class="sub-text" id="Service1">
Curabitur faucibus magna at leo commodo sed cursus dui posuere.
Praesent ornare, leo et aliquet tempus, orci orci luctus leo.
</div>
</li>
</ul>
</div>
所以我想我需要的是放在标题中打开链接上的"传入"切换的函数。我试过各种各样的功能,但我不太擅长。如有任何帮助,我们将不胜感激。谢谢
将超链接设置为这样的格式:
<a href="http://www.debdweb.com/test/services?id=1">Go to Service 1 (open)</a>
并使用$_GET['id']
从URL中获取数字