Solved

show html in text input

Posted on 2013-05-17
2
445 Views
Last Modified: 2013-05-17
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

0
Comment
Question by:Luey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39175321
Use htmlentities($str) Function to insert data.
0
 

Author Closing Comment

by:Luey
ID: 39175389
Thanks worked perfect.   I was thinking about it all wrong.  :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question