Hello, I am new to this php, but getting the hang of it.
My problem/Questions is this:
I am reading text from txt file and pluging it into php
<?
$data = file('currentdemo.txt');
foreach($data as $key=>$element)
{
$element = trim($element);
$pieces = explode("|", $element);
}
?>
Then I an saying it in a textarea box,
<textarea name="t_changelog" cols="50" rows="5" class="style2" id="t_changelog">
<?
// replace <BR> to newline for field display
$changelog = trim($pieces[2]);
$changelog = str_replace("<BR>","\n", $changelog);
echo $changelog;
?>
It works fine, only problem is when someone file has " or ' it will convert it to /' or /" this is a problem. I want it to show correctly
i.e. I'll be back, and not I/'ll be back.
btw the user is able to edit the textarea and save the changes (it works fine) just this /' problem @#*&@ grr
Any help would be much thanks,
ZAPa