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
239 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
[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
1 Comment
 
LVL 49

Accepted Solution

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

-r-
0

Featured Post

Technology Partners: 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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

740 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