show html in text input

Hello I have a text input that I am trying submit and update html code in a data file.  It works fine for submit but when I try to echo it data in my update program the the html in the text field  is being read as html and not text.   How can I do this. Thanks

<input name="google_verify" type="text" class="text_field" id="name" size="35" maxlength="200" value="<?php echo $row_site['sit_google_verification']; ?>">

Open in new window

LueyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jagadishwor DulalConnect With a Mentor Braces MediaCommented:
Use htmlentities($str) Function to insert data.
0
 
LueyAuthor Commented:
Thanks worked perfect.   I was thinking about it all wrong.  :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.