GET form causes 404 |
[eluser]the real rlee[/eluser]
Hi guys, was wondering if someone could help me with this. I have a search form which returns a list of results which i paginate. For this to work I need to send a GET variables from CI, but i keep getting 404 erors. Here's my form: Code: <?=form_open('locations/search', array('method'=>'get', 'onsubmit'=>"if (this.q.value == '') { alert('Please enter a store name, state or postcode'); return false; }"))?> My Controller: Code: function search ($page = 1, $per_page = 25) { At the moment then form is submiting to http://dev.mysite.com.au/locations/search?q=forest and i get Error 404... Anyway any help appreciated |
Messages In This Thread |
GET form causes 404 - by El Forum - 07-15-2007, 08:21 PM
GET form causes 404 - by El Forum - 07-16-2007, 04:16 AM
GET form causes 404 - by El Forum - 07-16-2007, 05:55 PM
|