Welcome Guest, Not a member yet? Register   Sign In
Very basic quotes input issue.
#1

[eluser]morph london[/eluser]
I am quite annoyed I don't already know this, so please forgive my stupidity. What is the best way of getting past this issue:

I have a database entry with the contents: "new article" 'test'
I am then passing this to a text field to be edited so this outputs: <input type="text" class="title" name="title" id="title" value=""New article" 'test'" />

And obviously breaks the field, whats the best way to stop this happening?

Thanks Alex
#2

[eluser]xwero[/eluser]
you can use the form_prep function form the form helper.




Theme © iAndrew 2016 - Forum software by © MyBB