Saturday, 7 September 2013

How to make Input POST as variable in CodeIgniter?

How to make Input POST as variable in CodeIgniter?

I pass name_cust variable using POST to the controller (this is works) and
want to echoing the variable in the html body.
In the controller,
$data['nameCust'] = $this->input->post('name_cust');
In the body php,
<p class="lead">Are you sure want to delete <?php echo $nameCust; ?></p>
When I checked in with firebug it is looks good in XHR Response HTML, the
snapshot is in http://i.stack.imgur.com/JtN8S.png
But... not with actual HTML response, the snapshot is in
http://i.stack.imgur.com/I4Qvm.png
Or, did I miss something?Thanks

No comments:

Post a Comment