simple ci error |
[eluser]marjune[/eluser]
ei guys i'm a newbie in ci, in my first project i'm making a sample text fields that insert a data into the data base, the url in index is http://localhost/ci/ then when i click the submit button the error was Not Found The requested URL /helloworld/submit was not found on this server. this is my base url $config['base_url'] = "http://localhost/" my form <?php echo form_open('helloworld/submit'); echo form_label('bloger', 'bloger'); echo form_input(array('bloger' => 'bloger', 'size' => '15')); echo form_label('blog topic', 'blog_topic'); echo form_input(array('blog_topic' => 'blog_topic', 'size' => '50')); echo form_label('blog content', 'blog_content'); echo form_textarea(array ('blog_content' => 'blog_content', 'cols' => '40', 'rows' => '5')); echo "<br><br>"; echo form_submit('submit', 'add blog'); echo form_close(); ?> i cant figure it out pls help<<<<<<<<<< thanksssss
[eluser]philm[/eluser]
Well you clearly have the base_url set incorrectly, it should match the url you first mentioned...
[eluser]marjune[/eluser]
i already did it but it dosn't work. i change my base_url to http://localhost/ci/ but the error was Not Found The requested URL /helloworld/submit was not found on this server.
[eluser]garymardell[/eluser]
ah but i assume you don't have htaccess setup yet. If this is the case you must be going to www.localhost/ci/helloworld/submit but you should be going to www.localhost/ci/idnex.php/helloworld/submit
[eluser]marjune[/eluser]
i think its work, but there some other errors Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\ci\system\codeigniter\Common.php on line 130 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\ci\system\codeigniter\Common.php on line 136 A PHP Error was encountered Severity: 8192 Message: Function set_magic_quotes_runtime() is deprecated Filename: codeigniter/CodeIgniter.php Line Number: 60 A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: libraries/Loader.php Line Number: 255 A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: database/DB.php Line Number: 133 |
Welcome Guest, Not a member yet? Register Sign In |