GET方法正在重定向到主页[Opencart-自定义页面]



我是opencart初学者。我创建了一个自定义页面,试图将提交的表单(方法类型get)值获取到页面本身,但当我点击提交时,所有信息都会重定向到主页。

更具体地说,

        <form method='get' action='".$this->url->link('common/custompage','','SSL')."'>
        <input type='text' name='limit' maxlength='8' placeholder='Enter price to limit'>
        <input type='hidden' value='69' name='orderid' />
        <select name='decision'>
        <option value='approve'>Approve</option>
        </select>
        <input type='submit' value='Continue'>
        </form>

URL框中的结果是

http://www.example.com/index.php?limit=&orderid=69&决策=批准

而不是

http://www.example.com/index.php?route=common/custompage?limit=&orderid=69&决策=批准

有什么方法可以将这些值提交到页面本身吗?

POST方法运行良好,但我需要GET。

method="get"将用表单的值替换操作的整个查询字符串。要将路由添加回参数,只需创建一个隐藏字段:

<input type="hidden" name="route" value="common/custompage" />

最新更新