• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Escape quotes/strip slashes.

#1
[eluser]jrutter[/eluser]
My insert code isnt stripping quotes and adding slashes, so when a user adds data with quotes, it breaks my application. So Im not sure what I need to do to make this work.

here is my insert code:

Code:
function insert_park()
    {
        $this->park_name   = $_POST['park_name'];
        $this->park_description   = $_POST['park_description'];
        $this->park_website   = $_POST['park_website'];
        $this->park_addr1   = $_POST['park_addr1'];
        $this->park_city   = $_POST['park_city'];
        $this->park_state   = $_POST['park_state'];
        $this->park_zip   = $_POST['park_zip'];
        $this->park_visible   = $_POST['park_visible'];
        
        $this->db->insert('parks_tbl', $this);
        
    }

Any help would be greatly appreciated!


Messages In This Thread
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 02:13 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 05:32 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 05:42 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:00 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:04 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:06 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:15 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 06:58 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 07:18 PM
Escape quotes/strip slashes. - by El Forum - 02-04-2009, 07:41 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.