我有一个形式的网页,有3个参数,如URL重写与形式和3个参数
http://www.likeforex.com/currency-converter/fxconverter.php?f=euro-eur&t=usd-us-dollar&amt=1
我用的.htaccess页面改写为:f_t.htm/amt
为:
http://www.likeforex.com/currency-converter/euro-eur_usd-us-dollar.htm/1
但是,我的问题是当用户更改amt(页面中间)的值时,表单被重新组合,并且重新组合的页面仍然是参数格式。如何在重写格式后制作网址?
提交按钮或其他任何错误?
the form:
<form name="e" method="get" action="fxconverter.php">
the amt parameter:
<input type="text" id="amt" name="amt" size="16" maxlength="16" value="'.$amt.'" onclick="this.focus();this.select();" />'
the submit button:
<input type="submit" value="Convert" class="bt" />
the .htaccess line:
RewriteRule ^(.*)_([^_]+)\.htm/([^/]+)$ fxconverter.php?f=$1&t=$2&amt=$3 [NC]
非常感谢。
你能告诉我们表格和相关的mod_rewrite,否则它是一个猜谜游戏...... – 2012-07-14 16:18:06
没什么。只有RewriteRule ^(。*)_([^ _] +).htm /([^ /] +)$ fxconverter.php?f = $ 1&t = $ 2&amt = $ 3 [NC] – 2012-07-14 16:22:50
@ likeforex.com请更新你的问题。 – Gumbo 2012-07-14 16:26:42