• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
input->post not working

#8
[eluser]meigwilym[/eluser]
Just a suggestion for tidier code, put the post vars straight in your $data array.

Code:
$data = array();

$data['first_name'] = $this->input->post('first_name');
$data['last_name'] = $this->input->post('last_name');
$data['email'] = $this->input->post('email');
$data['phone'] = $this->input->post('phone');
$data['address'] = $this->input->post('address');
$data['city'] = $this->input->post('city');
$data['state'] = $this->input->post('state');
$data['zip'] = $this->input->post('zip');
$data['account'] = $this->input->post('account');

Mei


Messages In This Thread
input->post not working - by El Forum - 04-28-2008, 11:46 AM
input->post not working - by El Forum - 04-28-2008, 01:14 PM
input->post not working - by El Forum - 04-28-2008, 01:37 PM
input->post not working - by El Forum - 04-28-2008, 01:51 PM
input->post not working - by El Forum - 04-29-2008, 10:50 AM
input->post not working - by El Forum - 04-29-2008, 11:14 AM
input->post not working - by El Forum - 04-29-2008, 12:12 PM
input->post not working - by El Forum - 05-15-2008, 01:36 PM
input->post not working - by El Forum - 06-09-2008, 05:53 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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