Okay this code works! but...
Table I use:
<table width='95%' border='0' cellspacing='0' cellpadding='2'>
<tr>
<td align='right'><strong>Content of news:</strong></td></td>
</tr>
<tr>
<td colspan="2"> <textarea name="content" cols="100%" ></textarea></td>
</tr>
<tr>
<td colspan="2"> <input type="submit" name="submit" value='submit news'> </td>
</tr>
</table>
Php code for write file:
<? $fp = fopen ("$file", "wb");
fwrite($fp, $content);
fclose($fp); ?>
Okay the problem is that say I type something like this in the content "What's up, I'm great!"
when i use readfile or include, stuff like this appears
"what\'s up, I\'m great!"
I know this happens because when it fwrite the content, it converts into that, but I have no idea how to fix it. I really wanna know if there's a way to not let this appear when I readfile or include the file. PLEASE HELP!!!! thanks!