Welcome Guest, Not a member yet? Register   Sign In
Strip HTML tag
#11

[eluser]Mithun[/eluser]
Thank you Sbioko,
I tried out your code and it worked it worked like a charm!
I haven't tried just before because English is a foreign language for me too!
#12

[eluser]Sbioko[/eluser]
Oh, nice! Thanks! Sorry for my screaming ;-)
#13

[eluser]CroNiX[/eluser]
From the manual: Note: You can also use any native PHP functions that permit one parameter, like trim, htmlspecialchars, urldecode, etc.

So, you should just be able to add it as a rule.
Code:
$this->form_validation->set_rules('customer', 'Customer', trim|required|strip_tags|xss_clean');
#14

[eluser]Mithun[/eluser]
Thanks CroNiX, got it
#15

[eluser]laralaya[/eluser]
I got few things cleared .thanks for the nice information.




Theme © iAndrew 2016 - Forum software by © MyBB