Welcome Guest, Not a member yet? Register   Sign In
Form to email: passing success / fail message back to view - howto?
#5

[eluser]Michael Wales[/eluser]
Not sure why you are using load vars in this instance... here's how I would accomplish the same:

Code:
$this->data->feedback = 'hi!';
if (!$this->email->send()) {
  $this->data->feedback = 'Sorry, message could not be sent.';
} else {
  $this->data->feedback = 'Message sent!';
}
$this->load->view('myview', $this->data);

View:
Code:
echo $feedback;


Messages In This Thread
Form to email: passing success / fail message back to view - howto? - by El Forum - 03-05-2008, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB