Codeigniter stripping out pound signs (£) using form validation |
[eluser]Unknown[/eluser]
I've used Codeigniter for a while and whilst I've not always found the form validation as straightforward as I'm sure it should be I've never had any massive problems... until now! I have a simple form comprised of text inputs and a textarea. The form starts off prepopulated and, if the validation fails, repopulates it with the last changed state. My problem is this - The textarea needs to accept pound signs (£). It populates text from the database absolutely fine but on submit, whether the form validates or not, it strips them out, regardless of what I do!! I've scoured the net and can only find solutions about applying things like htmlentities to the validation rules, but if I firephp the post data out, even before the rules, it's already been stripped out. global_xss_filtering is set to false in my config. It's driving me mad and wasting way more time than it should... has anyone got a solution to this, I know I'm probably missing something really simple - it's maddening! Thanks, Helen Here's my validation code, although the firephp log at the top shows it to already be stripped out so I can't see how doing anything here will help... I've tried adding the various php function as it suggests HERE (codeigniter manual) but it makes no difference at all. Code: public function edit_entry2($entry_id, $page_id) {
[eluser]tomcode[/eluser]
To get started: 1. You use UTF-8, don't You ? (the CodeIgniter default) 2. Make sure that Your HTML validates and You have UTF-8 specified 3. Turn on CI debug logging, and check whether You have a line containing 'UTF-8 Support Enabled' |
Welcome Guest, Not a member yet? Register Sign In |