Welcome Guest, Not a member yet? Register   Sign In
problem with enable_query_strings and form_open
#1

[eluser]bigmike7801[/eluser]
I want to be able to user query strings in this fashion. Domain.com/controller/function?param=5&otherparam=10

In my config file I have

Code:
$config['base_url']    = 'http://localhost:8888/test-sites/leads.com/public_html';
$config['index_page'] = '';
$config['uri_protocol']    = 'PATH_INFO';
$config['enable_query_strings'] = TRUE;

The problem that I am getting is that form_open is automatically adding a question mark (?) to my url.

So if I say
Code:
echo form_open('account/login');

it spits out: http://localhost:8888/test-sites/leads.c...ount/login

Notice the question mark it added right before "account".

How can I fix this?

Any help would be greatly appreciated!
#2

[eluser]bigmike7801[/eluser]
Just a quick update. I set $config['enable_query_strings'] = FALSE; because I didn't realize I could still use the get strings like ?param=5&otherparam=10 to get info from even with enable_query_strings set to false so that seemed to do the trick.




Theme © iAndrew 2016 - Forum software by © MyBB