Solved

show html in text input

Posted on 2013-05-17
2
436 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

776 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