I’ve got a form on a page (view) which the URL for it is:
My form on this page (view) is:
<form name="formsearch" action="<?php echo site_url(uri_string()); ?>" method="get">
<input id= name="search"name="search" class="filter-search" type="text" placeholder="Search Me"/>
<button type="submit" class="filter-button">Search</button>
</form>
So lets say I type in ‘Microsoft’ to my search and hit enter. The URL + query strings I need it to go to would be:
http://www.example.com/page?item=samsung-galaxy-nexus&search=microsoft
I can get it working with normal PHP, however I can’t seem to get it to work in CodeIgniter. I’ve also gone into the config.php and set query url’s to true.
It should also be noted that if the current URL is:
If I do <?php echo current_url(); ?> it outputs
Notice how the ? has swapped places
I couldn’t get this working at all. In the end I used a CodeIgniter 3rd Party Helper found here: