Welcome Guest, Not a member yet? Register   Sign In
How to secure the segment passed by the user?
#1

[eluser]FlyingCat[/eluser]
Hi guys. I was wondering what are the best practice before sending segment to the Model.

For example:

Get the segment1 from
base_url/controller/query_detail/segment1

on my controller
Code:
public function query_detail($segment1)
{
//what are the best practice before I send the segment1 to the Model?
   $this->load->model('model');
   $this->model->query($segment1);  
   ......  
}

I hope I explain well. Thanks for the help.


Messages In This Thread
How to secure the segment passed by the user? - by El Forum - 01-27-2012, 06:18 PM
How to secure the segment passed by the user? - by El Forum - 01-27-2012, 07:39 PM
How to secure the segment passed by the user? - by El Forum - 01-27-2012, 09:08 PM
How to secure the segment passed by the user? - by El Forum - 01-27-2012, 10:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB