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

[eluser]juggernautsei[/eluser]
I am trying to create a simple basic form that will post to itself. However when I click the submit button I get the

An Error Was Encountered
The asction you have requested is not allowed.

I can't find anything in the documentation that would help me trouble shoot this code error.

I was expecting just to simply have the form post and display what I put in the box.

Action is left blank so that it post back to itself but I have also tried to put in

echo base_url('index.php/childtest/search') and I still receive the same error message.

Thanks for the help.

controller Code
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

         session_start(); //we need to call PHP's session object to access it through CI
class ChildTest extends CI_Controller {
  
  
  public function search(){
  
   $this->load->helper('form');
   $keyword = $this->input->post('keyword');
  
   echo $keyword;
  
     $this->load->view('childsearch');  
  
  
  }
  
}

View Code:

Code:
<div id="search">
          &lt;form id="search" method = "post" acti&gt;
              <label id="familyname">Child Family Name</label>
              &lt;input type="text" size="20" id="keyword" name="keyword"/&gt;
              &lt;input type="submit" value="Search" /&gt;          
          &lt;/form&gt;
          
        </div>


Messages In This Thread
Form Error on Post - by El Forum - 07-11-2014, 01:01 PM
Form Error on Post - by El Forum - 07-11-2014, 01:19 PM
Form Error on Post - by El Forum - 07-12-2014, 04:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB