form post not working

#1
[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 />
&lt;input name="aname" type="text" value="" /&gt;
<br />
Review
<br />
&lt;textarea name="info" rows="10"&gt;&lt;/textarea>
<br />
&lt;input type="submit" value="Submit Review" /&gt;
&lt;/form&gt;


_______________________________________________________________________


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.


Messages In This Thread
form post not working - by El Forum - 09-02-2010, 02:10 PM
form post not working - by El Forum - 09-02-2010, 09:31 PM
form post not working - by El Forum - 09-02-2010, 10:01 PM
form post not working - by El Forum - 09-02-2010, 11:16 PM
form post not working - by El Forum - 09-02-2010, 11:26 PM
form post not working - by El Forum - 09-02-2010, 11:41 PM
form post not working - by El Forum - 09-02-2010, 11:48 PM
form post not working - by El Forum - 09-02-2010, 11:54 PM
form post not working - by El Forum - 09-03-2010, 12:09 AM
form post not working - by El Forum - 09-03-2010, 12:30 AM
form post not working - by El Forum - 09-03-2010, 12:36 AM
form post not working - by El Forum - 09-03-2010, 12:53 AM
form post not working - by El Forum - 09-03-2010, 12:57 AM
form post not working - by El Forum - 09-03-2010, 12:57 AM
form post not working - by El Forum - 09-03-2010, 01:05 AM
form post not working - by El Forum - 09-03-2010, 01:11 AM
form post not working - by El Forum - 09-03-2010, 01:19 AM
form post not working - by El Forum - 09-03-2010, 01:28 AM
form post not working - by El Forum - 09-03-2010, 03:10 AM
form post not working - by El Forum - 09-03-2010, 10:31 AM
form post not working - by El Forum - 09-06-2010, 12:09 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.