• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

sripslashes ???

Hello.
Im using
$elm1=$_POST['elm1']; to post
<div align="center"><font style="background-color: #ff0000" color="#0000ff" size="5"><b>LINE 1</b></font><br /></div>

but (i dont know why) my page gets...
<div align=\"center\"><font style=\"background-color: #ff0000\" color=\"#0000ff\" size=\"5\"><b>LINE 1</b></font><br /></div>

so iv tryed to remove the \ using
$elm1=$_POST[stripslashes('elm1')];

But is not working....Why???
0
NTGrE
Asked:
NTGrE
1 Solution
 
dr_dedoCommented:
$elm1=stripslashes($_POST['elm1']);
0
 
NTGrEAuthor Commented:
Thnx......

I should know this.... :((

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now