Welcome Guest, Not a member yet? Register   Sign In
Update query is altered by safari???
#15

[eluser]TheFuzzy0ne[/eluser]
[quote author="bobbob" date="1234483277"]Thanks TheFuzzyOne.
When I changed the validation to:
$this->form_validation->set_rules('preferred','preferred', 'required|trim|xss_clean');

it worked. There was a => between the preferred.[/quote]

Sorry about that. I must have edited the wrong part

[quote author="bobbob" date="1234483277"]
So that is great but I have another query which has many posts in it. This one was just one field to be updated. I like that i can just enter $_POST instead of set this as this etc for each item.
Is there a way to do that with active record?[/quote]

Uhm... Did you miss the part where inserting the $_POST array into your database was breaking your application?

The way you had it originally would have worked, but you were getting an extra field from somewhere. That's why you need to sanitise your data. You should never trust any data coming from someone's browser. Likewise, you should never implement something you know to be security risk, or something that is likely to break your application, just to save a few lines of code, it's just not worth the risk.


Messages In This Thread
Update query is altered by safari??? - by El Forum - 02-12-2009, 01:20 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 01:44 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 02:09 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 07:49 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 08:41 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 08:48 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 08:58 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 09:07 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 09:15 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 09:28 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 09:38 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 09:59 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 10:40 AM
Update query is altered by safari??? - by El Forum - 02-12-2009, 12:01 PM
Update query is altered by safari??? - by El Forum - 02-12-2009, 12:49 PM
Update query is altered by safari??? - by El Forum - 02-12-2009, 04:15 PM
Update query is altered by safari??? - by El Forum - 02-12-2009, 04:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB