POST adding extra characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.. when using POSTon a text box to send info its adding an extra \ character.

<form action="script.php" method="POST">
<TEXTAREA NAME="save" COLS=100 ROWS=15>
dry-run:
filter: account-id = '10002'
select: key
</textarea>
<P><br><INPUT TYPE="submit" VALUE="submit">
</FORM></a>

That information is then written to a text file with..

$msg = $ud_save;
$f = fopen("file.txt", 'w');
fwrite($f, $msg);
fclose($f);

Whats written to the text file should be..

dry-run:
filter: account-id = '10002'
select: key

but its writting this instead..

dry-run:
filter: account-id = \'10002\'
select: key

How can I stop it addind the backslashes \

Thanks
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux