Welcome Guest, Not a member yet? Register   Sign In
Form Submission Error
#1

I am getting following error in form submission

The requested URL /CIExamples/Form_Submission/form/f1 was not found on this server.

form.php (controller)
<?php

    class Form extends CI_Controller
    {
        function __construct()
        {
            parent::__construct();
        }
        public function index()
        {
            $this->load->view('form_view');
        }
        public function f1()
        {
            echo 'form submitted';
        }
    }

?>






form_view.php (view)

<html>
<head>
<title>Form1</title>
</head>
<body>
  <h2>Form Submission Demo</h2>
  <?php echo form_open('form/f1/'); ?>
  <?php echo form_submit('submit', 'Submit'); ?>
  <?php echo form_close(); ?>
</body>
</html>
Reply


Messages In This Thread
Form Submission Error - by Kavita - 06-25-2016, 02:17 AM
RE: Form Submission Error - by InsiteFX - 06-25-2016, 07:05 AM
RE: Form Submission Error - by wolfgang1983 - 06-25-2016, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB