所以即时通讯(试图)在基础建立一个网站,即时通讯与下一部分挣扎。如何通过url传递变量,根据变量更改dd和li的类?
首先让我存在(的一部分)的代码第一
<dl class="contained tabs">
<dd class="active"><a href="#contactForm">Neem contact op</a></dd>
<dd><a href="#hoofdleiders">Hoofdleiders</a></dd>
<dd><a href="#leiders">Leiders</a></dd>
<dd><a href="#staf">Staf</a></dd>
</dl>
<ul class="tabs-content contained">
<li id="contactFormTab" class="active">
<div class="row collapse">
<div class="two columns"><label class="inline">Naam</label></div>
<div class="ten columns"><input type="text" name="naam" id="naam" placeholder="Naam" value="' . (isset($_POST['naam']) ? htmlspecialchars($_POST['naam']) : '') . '" />
</div>
<div class="row collapse">
<div class="two columns"><label class="inline">Email</label></div>
<div class="ten columns"><input type="text" name="mail" id="mail" placeholder="[email protected]" value="' . (isset($_POST['mail']) ? htmlspecialchars($_POST['mail']) : '') . '" />
</div>
<div class="row collapse">
<div class="two columns"><label class="inline">Onderwerp</label></div>
<div class="ten columns"><input type="text" name="onderwerp" id="onderwerp" placeholder="onderwerp" value="' . (isset($_POST['mail']) ? htmlspecialchars($_POST['onderwerp']) : '') . '" />
</div>
<label>Wat wilt u zeggen?</label>
<textarea id="bericht" name="bericht" rows="3">' . (isset($_POST['bericht']) ? htmlspecialchars($_POST['bericht']) : '') . '</textarea><br />
<button type="submit" name="submit" class="radius button">Verstuur</button>
</li>
<li id="hoofdleidersTab">
<ul class="block-grid five-up">
<li><a href="mailto:[email protected]"><img src="http://placehold.it/200x200&text=[persoon]" /><br />Naam 1</a></li>
<li><a href="mailto:[email protected]"><img src="http://placehold.it/200x200&text=[persoon]" /><br />Naam 2</a></li>
</ul>
</li>
<li id="leidersTab">
<ul class="block-grid five-up">
<li><a href="mailto:[email protected]"><img src="http://placehold.it/200x200&text=[persoon]" /><br />Naam 1</a></li>
<li><a href="mailto:[email protected]"><img src="http://placehold.it/200x200&text=[persoon]" /><br />Naam 2</a></li>
</ul>
</li>
<li id="stafTab">
<ul class="block-grid five-up">
<li><a href="mailto:[email protected]"><img src="http://placehold.it/200x200&text=[persoon]" /><br />Naam 1</a></li>
<li><a href="mailto:[email protected]"><img src="http://placehold.it/200x200&text=[persoon]" /><br />Naam 2</a></li>
</ul>
</li>
所以DD类“活动”和利类“活动”,使标签高亮显示。
我的问题是,如何才能让这个类转换到另一个项目(可以说:第二个),另一个李ID(让也说在网址中使用过的变量,第二个(hoofdleiders)?
这是一个接触的形式的一部分,我希望能够到陆地上的人的权利,他们需要的人。
如果有什么不清楚的地方,请与我裸露,这是我在计算器上的第一个问题。
URL参数/变量可能会以PHP形式出现:$ _GET ['']; – ethrbunny
你失去了我的存在....... – defiancenl
dd和li现在是硬编码的活动,我需要它们根据url中的字符串变成活动的,比如说contact.php?谁= Hoofdleiders – defiancenl