Hello,
I faced a problem while trying to use the $_POST command in PHP.
Whenever I am trying to receive a string which contains any of the characters ', ", \, the output character is accompanied by a \ character.
Input: He's known as Michael "Mickey" Brown. This is a \ character.Code:<?php $mystring=$_POST["mystring"]; echo $mystring; ?>
Output: He\'s known as Michael \"Mickey\" Brown. This is a \\ character.
---------- Post added at 12:03 PM ---------- Previous post was at 12:00 PM ----------
Please note that this problem did not arise when I was using the code in my computer's localhost (Wamp); it started when I uploaded the file in my x10hosting's account.


2Likes
LinkBack URL
About LinkBacks
Reply With Quote

