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
237 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
ID: 17788036
It transforms (among others) < to &lt; and > to &gt; such that people cannot inject html into your pages.

-r-
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

856 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