Welcome Guest, Not a member yet? Register   Sign In
form validation removing backslashes
#1

[eluser]teomor[/eluser]
I have this "template separator" that's ususally a TAB (\t typed by user) so i have set a form validation rule on it, because if i hadn't, the freakin' re-population wouldn't work, and so far everything i running nicely.

However, if some conditions are met, then i need to pass the template separator variable to another controller method that also works with input from $_POST.

So when i do that i just set $_POST['template_separator'] to the value i need to pass and call that second method. The second method also has form validation in place, so when it runs, the "\t" ends up as "t".

What gives?

PS: I also found out that after the first validation, this->input-post('template_separator') returns the correct value, but $_POST['template_separator'] is missing the \




Theme © iAndrew 2016 - Forum software by © MyBB