Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我试图用点击的画廊的链接发送一个 facebook 画廊的描述。目前它需要帮助和名称,但如果我也发送 dec,那么链接将非常难看而且很长。
echo "<a href='gallery.php?action=list_pics&aid=" . $values['aid'] . "&name=" . $values['name'] . "'>";
有什么方法可以在不使链接过于丑陋的情况下发送它?
使用echo "<a href='javascript:sendData()'>Click Here</a>",这将链接到javascript函数sendData(),然后sendData()在javascript中调用一个函数,该函数通过POST方法将数据发送到gallery.php。
echo "<a href='javascript:sendData()'>Click Here</a>"
sendData()