The URI you submitted has disallowed characters. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: The URI you submitted has disallowed characters. (/showthread.php?tid=31157) |
The URI you submitted has disallowed characters. - El Forum - 06-08-2010 [eluser]Bhavani Shekhawat[/eluser] I already have a login and a registration form which takes in the data from the user and inserts into the database. However, this is not the case where I have one more form that just has to simply take in the other inputs from the user and put it in a separate table. Whenever I am trying to feed in the data into the database through the form this is what I am getting: <i> The URI you submitted has disallowed characters. </i> The form: Code: <form> Model for the form: Code: <?php Controller for the form: Code: function add_artifacts() I am using the latest version of CI and the latest php version. Would really appreciate if someone can point out the problem. Thanks! The URI you submitted has disallowed characters. - El Forum - 06-08-2010 [eluser]steelaz[/eluser] Try changing <form> to <form method="POST">, you should also add "action" parameter. The URI you submitted has disallowed characters. - El Forum - 06-08-2010 [eluser]Burak Guzel[/eluser] You just need to remove the "<form>" from your view (the first line). You are already calling form_open(), which correctly creates a POST form tag, instead of the default GET (which causes the error you are having). Another unrelated problem: Your form_open() links to 'site/add_artifact', while in fact your controller is named 'site/add_artifacts'. The URI you submitted has disallowed characters. - El Forum - 06-08-2010 [eluser]Bhavani Shekhawat[/eluser] K let me try this...if this works you are life savior! The URI you submitted has disallowed characters. - El Forum - 06-08-2010 [eluser]Bhavani Shekhawat[/eluser] [quote author="Burak Guzel" date="1276052640"]You just need to remove the "<form>" from your view (the first line). You are already calling form_open(), which correctly creates a POST form tag, instead of the default GET (which causes the error you are having). Another unrelated problem: Your form_open() links to 'site/add_artifact', while in fact your controller is named 'site/add_artifacts'.[/quote] Problem solved. It was the <form> thing. Thanks a lot man! p.s. thanks for the artifact typo too! |