how do I pass values from a textarea to a php script?
<html>
<head>
<title>news creation</title>
</head>
<body>
<form action="create_news.php" method="post">
<b>Title:</b> <input type="text" name="title">
<p>
<b>Author Name:</b> <input type="text" name="author">
<p>
<b>Article:</b> <p><textarea rows="10" cols="30" name="article">type here</textarea>
<br>
<input type="submit" value="create">
</form>
</body>
</html>
<?
//connect to db
@ $db=mysql_connect("localhost","news","protox");
if (!$db)
{
echo("couldn't connect");
exit;
}
mysql_select_db("news");
$query="insert into articles values
('".$title."','".$author."','0','".$article."','0')";
$result=mysql_query($query);
if ($result)
{
echo("article created");
exit;
}
if (!$result)
{
echo("could not build");
exit;
}
?>