[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">
<form id="search" method = "post" acti>
<label id="familyname">Child Family Name</label>
<input type="text" size="20" id="keyword" name="keyword"/>
<input type="submit" value="Search" />
</form>
</div>