我有下面的代碼的HTML表單:HTML表單不輸入數據提交到URL
<form action="search/" method="get">
<input type="search" value="search for..." id="search" />
</form>
當我按下回車鍵,將其提交給action屬性指定的頁面,但它不會將輸入值添加到URL。
我希望有人搜索「政治家」的關鍵字將類似「kereso /政客」
我使用.htaccess的管理與下面的代碼SEO友好的URL。
RewriteEngine On
RewriteCond %{HTTP_HOST} ^haromszekirmdsz.ro
RewriteRule (.*) http://www.haromszekirmdsz.ro/$1 [R=301,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
php_flag magic_quotes_gpc Off
您輸入不具有name屬性。 – Musa