我有此代码:
echo " <form action='https://test.com/forum/index.php?/search/&q=".
$row['record_meta_keywords'] ."
&type=cms_records7&search_and_or=and&search_in=titles'> ";
echo " <select name='/search/&q=". $row['record_meta_keywords'] ."
&type=cms_records7&search_and_or=and&search_in=titles'> ";
while ($row = mysql_fetch_array($result)) {
echo "<option value='" . $row['record_meta_keywords'] ."'>" .
$row['record_meta_keywords'] ."</option>";
}
echo " </select> ";
echo " <br><br> ";
echo " <input type='submit'> ";
echo " </form> ";
?>
但是,当我在下拉菜单中选择一个选项时,URL显示如下:
问题是我需要这样显示URL才能使其正常工作:
我尝试了urlencode,但这似乎也不起作用。
如何解决此问题?