View Full Version : Retrieving data from Textbox's

10-05-2007, 12:51 PM
Hi, Im 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. its or dont the value of the string changes from dont to a don\t.

Does anyone know anything that will stop this happening?

10-05-2007, 08:02 PM
yea, set your message equal to it self with stripslashes

E.G. $message=stripslashes($message);

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.]