Solved

what is htmlspecialchars  <input type="hidden" id="x_host_ip" name="x_host_ip" value="<?php echo htmlspecialchars(@$x_host_ip); ?>">

Posted on 2006-10-23
1
226 Views
Last Modified: 2006-11-18
<input type="hidden" id="x_host_ip" name="x_host_ip" value="<?php echo htmlspecialchars(@$x_host_ip); ?>">


what is htmlspecialchars(@$x_host_ip);
0
Comment
Question by:teera
1 Comment
 
LVL 49

Accepted Solution

by:
Roonaan earned 350 total points
Comment Utility
It transforms (among others) < to &lt; and > to &gt; such that people cannot inject html into your pages.

-r-
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
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…

771 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

16 Experts available now in Live!

Get 1:1 Help Now