Welcome Guest, Not a member yet? Register   Sign In
value pssing
#7

[eluser]WanWizard[/eluser]
Another tip: do not ever use unvalidated and unfiltered information anywhere in your application, so no references to $_POST. Anything can be posted, you can't trust its content.

This works the same as the previous example:
Code:
$data['sample'] = $this->sample();
$data['has_blogs'] = $this->input->post('blogs', TRUE);
$this->load->view('viewfile', $data);

In your view:
Code:
<php if ( $has_blogs )
{
    // blog code here
}?&gt;


Messages In This Thread
value pssing - by El Forum - 08-30-2010, 01:01 AM
value pssing - by El Forum - 08-30-2010, 01:56 AM
value pssing - by El Forum - 08-30-2010, 02:53 AM
value pssing - by El Forum - 08-30-2010, 03:00 AM
value pssing - by El Forum - 08-30-2010, 04:34 AM
value pssing - by El Forum - 08-30-2010, 05:00 AM
value pssing - by El Forum - 08-30-2010, 10:27 AM
value pssing - by El Forum - 08-31-2010, 11:17 PM
value pssing - by El Forum - 09-01-2010, 12:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB