View Full Version : Retrieving data from Textbox's
coops2000
10-05-2007, 12:51 PM
Hi, I’m trying to place the data from a textbox within a form into a Variable, but I seem to be having problems. The problem is when it comes to a ‘ e.g. “it’s” or “don’t” the value of the string changes from “don’t” to a “don\’t”.
Does anyone know anything that will stop this happening?
Demonicman
10-05-2007, 08:02 PM
yea, set your message equal to it self with stripslashes
E.G. $message=stripslashes($message);
devaka
10-06-2007, 07:56 AM
I'm using follwing:
if ($_POST) {
$attr = array_map('stripslashes', $_POST);
...
}
and then using $attr variable as post variable
------------------
[Signature Removed by a Moderator - You must have at least 5 posts before having a signature, and no images are allowed.]
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.