[eluser]brian-[/eluser]
I tried to follow the 20 minute video. I created the form along with the function to accept the post values. Unfortunately that didn't work for me.
I did take the same form I created and created a test php file to get the post values, and they work.
So what am I doing wrong? Here is my code:
<?=form_open('test/adding_review');?>
Name
<br />
<input name="aname" type="text" value="" />
<br />
Review
<br />
<textarea name="info" rows="10"></textarea>
<br />
<input type="submit" value="Submit Review" />
</form>
_______________________________________________________________________
function adding_review(){
$data = array(
'revw_name' => $this->input->post('aname'),
'revw_text' => $this->input->post('info') );
$this->db->set($data);
$this->db->insert('Reviews');
}
__________________________________________________________
Maybe a configuration setting? I have no idea...The values added to the database are 0 0.