Solved

show html in text input

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now