because when i used textarea.. the output will always come out in one line only .
my current code.. im expecting to save the data into mysql.. but cant even ouput with the right format..
Code: Select all
<div id="newsContent">
<form action="t8.php" method="post" name="fnews" >
<p>
Title: <input width="500" name="newsTitle" id="newsTitle" type="text">
</p>
<p><textarea name="newsText" id="newsText" cols="100" rows="20"></textarea> </p>
<p>
<input type="submit" name="button" id="button" value="Submit">
</p>
</form>
</div>
<?
$newsTitle=$_POST[newsTitle];
echo htmlspecialchars($_POST[newsText]);
?>