CodeIgniter Forums
form_open action URL is wrong - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: form_open action URL is wrong (/thread-55080.html)



form_open action URL is wrong - El Forum - 10-09-2012

[eluser]leafc[/eluser]
I have this code

Code:
<?php echo form_open('search/result'); ?>

and it supposed to create this code

Code:
<form accept-charset="utf-8" method="post" action="http://mydomain.com/search/result">

but it created

Code:
<form accept-charset="utf-8" method="post" action="http://mydomain.com/[b]?[/b]search/result">


There is an extra "?" after domain and its messing up form process and end up I'm getting 404 error?
How can I fix this extra "?" to not show up??




Thanks