sending email with unknown values |
I'm using the email library. When I try to send the values through my form, they do not arrive and do not send the mail because it has no address to send it , can someone help me with this
this is my code: PHP Code: public function send_post()
Put this code at the top of your send_post() method:
PHP Code: echo '<pre>'; Check if the post variable 'fo' has a value.
is only appear
array( ) but if i write $da = $this->post(); vardump ($da); it show all the information
Show your form for the input data.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
i already made it work
before $Name = $this->input->post('Name'); $Email = $this->input->post('Email'); $Company = $this->input->post('Company'); $Host = $this->input->post('Host'); $fo = $this->input->post('fo'); $cc = $this->input->post('cc'); after $Name = $this->post('Name'); $Email = $this->post('Email'); $Company = $this->post('Company'); $Host = $this->post('Host'); $fo = $this->post('fo'); $cc = $this->post('cc');
Did you manipulate CI's core files? By default, CodeIgniter uses the input library for form data. So $this->input->post(...) should give the correct result, not $this->post.
See https://www.codeigniter.com/user_guide/l...input.html |
Welcome Guest, Not a member yet? Register Sign In |