将所选值传递到另一个页面 [英] Passing selected value into another page
问题描述
大家好,
i我是php的新手。
我创建了一个dropdownmenu来列出一些产品名。
当我从这个列表中选择一个产品时,它应该转到一个公共页面product.php
并根据所选产品显示详细信息。
所以我想把所选的产品价值放到product.php页面。
我循环下面的代码。
echo< ul>< li>< a href =product.php> $ row [Name]< / a>< / lt; / li>< / ul>;
i只想将$ row [Name]值传递给product.php页面,从上面一行开始。
请帮帮我。
关于
row [Name]< / a> < / li>< / ul>;
i只想通过
请帮帮我。
问候
首先,你的陈述无效:
echo< ul>< li> < a href =product.php>
hi all,
i am new to php.
I created a dropdownmenu to list some productnames.
when i select a product out of this list, it should go to a common page "product.php"
and show details as per the selected product.
so i want to get the selected product value into the product.php page.
I am looping the below code.
echo"<ul><li><a href="product.php">$row[Name]</a></li></ul>";
i just want to pass the $row[Name] value to the product.php page, from the above line.
please help me.
regards解决方案row[Name]</a></li></ul>";
i just want to pass the
row[Name] value to the product.php page, from the above line.
please help me.
regards
To start with, your statement cannot work:
echo"<ul><li><a href="product.php">
这篇关于将所选值传递到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!