1

これが私のフォームです

<form name="form1" action="<?php echo JRoute::_('index.php?option=com_mycomponent&task=search')?>" method="get">            
<input id="search_key" name="searchword" type="text" class="inputbox" placeholder="Enter Keyword/Part Number..." autocomplete="off">
<input type="submit" class="inputbutton" value="Search">
</form>  

「test」などのキーワードを入力すると、index.php?searchword=testにリダイレクトされます

しかし、私はそれをにリダイレクトする必要がありますindex.php?option=com_mycomponent&task=search&searchword=test

SEF有効/無効のどちらでも機能しません

index.php?option=com_mycomponent&task=search&searchword=testURLを入力すると、目的のページに移動します。

どこが間違っているのか教えてください

4

1 に答える 1