URL encode, external text problem

[LEFT]Right, i’m having problems with a simple update php page for my website.

basically, my client goes to a php page and enters text into the textfields and clicks submit.

Then, flash reads the new text and displays it.

Problem is i’m getting ‘/’ in front of an apostrophe - so it ends up being Nathan/'s music or something.

I’ve read many posts relating to this and havent yet been able to fix my problem and its driving me up the wall!

The textfield in flash that displays the data is embedded and is set for html.

The php script is this:


<?
if(isset($_POST['submit'])){
    function brify($string){
        str_replace("\r", "<br>", $string);
        str_replace("
", "<br>", $string);
        return $string;
    }
    $news = brify(addslashes($_POST['news']));
    $bio = brify(addslashes($_POST['bio']));
    $shows = brify(addslashes($_POST['shows']));
    $fp = fopen("../data.txt", "w");
    fwrite($fp, "news=" . $_POST['news'] . "&shows=" . $_POST['shows'] . "&bio=" . $_POST['bio']);
    print "Updated :)";
}
else{
    $contents = file_get_contents('../data.txt');
    $array = explode("&", $contents);
    $news =  stripslashes(substr($array[0], 5));
    $shows = stripslashes(substr($array[1], 6));
    $bio = stripslashes(substr($array[1], 6));
?>
<form action="<?=$_SERVER['PHP_SELF'];?>" method="POST">
News:<br><textarea rows="60" cols="30" name="news"><?=$news;?></textarea><br>
shows:<br><textarea rows="60" cols="30" name="shows"><?=$shows;?></textarea><br>
Bio:<br><textarea rows="60" cols="30" name="bio"><?=$bio;?></textarea><br>
<input type="submit" name="submit" value="submit">
</form>
<?
}
?> 

So simply all i need is for when my client types in something like " Nathan’s music " it will display on the website without the / before the ’

[/LEFT]