Simple Search: Passing Form Variable to URI Using CodeIgniter

前端 未结 5 1284
旧巷少年郎
旧巷少年郎 2021-02-06 17:49

I have a search form on each of my pages. If I use form helper, it defaults to $_POST. I\'d like the search term to show up in the URI:

http://examp         


        
5条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 18:14

    As far as I know, there is no method of accomplishing this with a simple POST. However, you can access the form via Javascript and update the destination. For example:

提交回复
热议问题