[英]on click of the selected div its text should be shown on next page
This is part of my page; 这是我页面的一部分; what I want is when user selects php then on next page in title php should be shown
我想要的是当用户选择php时,应该在标题php的下一页上显示
<div class="webdev">
<hr />
<div id="tab"><h4><a href="../pages/webdev.php" target="_blank">PHP </a> Duration:30 mins</h4></div>
<hr />
<div id="tab"><h4><a href="../pages/webdev.php" target="_blank">Wordpress </a> Duration:30 mins</h4></div>
<hr />
<div id="tab"><h4><a href="../pages/webdev.php" target="_blank">Joomla </a> Duration:30 mins</h4></div>
</div>
Pass it via URL parameters: 通过URL参数传递它:
<a href="next.php?category=php">PHP</a>
Then in next.php read it via $_GET['category']. 然后在next.php中通过$ _GET ['category']读取它。
You can do this by use of query strings 您可以使用查询字符串来做到这一点
just set these as Hyperlinks as 只需将这些设置为超链接为
<a href="nextPage.php?action=php">PHP</a>
<a href="nextPage.php?action=wq">Wordpress</a>
<a href="nextPage.php?action=joo">Joomla</a>
nextPage.php
nextPage.php
if(isset($_GET['action']))
{
$action = $_GET['action'];
if($action=='php')
{// Your code}
else if ($action=='wp')
{
}
else if($action='joo')
{
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.