2013-09-23 96 views
1

這裏是我的形式的Joomla 2.5形式重定向錯誤

輸入任何關鍵詞說「測試」後, 重定向到的index.php?搜索內容=測試

但我需要重定向它index.php?option=com_mycomponent&task=search&searchword=test

它不工作無論是在海基會啓用/禁用

當我在網址中輸入index.php?option=com_mycomponent&task=search&searchword=test時,我轉到所需的頁面。

請告訴我,我錯了

回答

2

你可以嘗試改變:

<form name="form1" action="<?php echo JRoute::_('index.php')?>" method="get"> 

<form name="form1" action="<?php echo JRoute::_('index.php')?>" method="get"> 
<input type="hidden" name="option" value="com_mycomponent"> 
<input type="hidden" name="task" value="search">