0
我试图用form_input把这种“搜索”的方法:使用form_input通过URL传递信息?
-- controller
function search($item_to_search, $page_to_display)
{
//do this and that
}
-- view
<?php
echo form_open("admin/admin_product_c/search/[words come here]/0"); <-- no clue what to do here..
echo form_input('search_data', 'Type the words to search');
//submit button here
?>
点击提交按钮,这样我可以通过URL传递值时,有没有一种方法来填写并完成form_open?如果可能的话,我希望避免在这种情况下使用Session/POST,因为将事物保存为一种格式确实可以帮助我。
是的,我选择了第二个:) Thx – Raccoon