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
243 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 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