[eluser]jojo777[/eluser]
Hi all!
Well, I'm looking and testing all my Dashboard's forms and I'm have seen that if i insert <iframe src="www.google.com"> inside an input text when the validation is done, then the program inserts in my database this:
<iframe src="www.google.es"></iframe>
But then if I look back for that user loading a view that shows the info in plain text, like a preview card it shows <iframe src="www.google.com">, that is fine for me, cool! But then I click edit so the program loads a form with all the data from that user and the input shows:
<iframe src= and outside the text field I see
" title="Insert name" />
How can I validate the form and then if there is an iframe code show that code inside the input text??
Thanks!
PS: If i put in muy view this
Code:
<input type="text" id="name" maxlength="255" name="name" value="<?php echo htmlentities($result->name); ?>" title="Insert your name" />
It shows
<iframe src="www.google.es"></iframe>