I’m trying to create an update form for blog entries and to populate the form i have it all working except for the text area because there is no value= for textareas. here is the php code.
include_once"../conn.php";
$id = $_GET['b_id'];
$query = "SELECT * FROM blog WHERE b_id = $id";
$result= mysql_query($query) or die(mysql_error());
$row=mysql_fetch_array($result,MYSQL_NUM);
echo
'<form action="new_blog.php" method="post">
<p>Title: <input type="text" name="title" value="'.$row[1].'" size="30" maxlength="200"/> </p>
<p>Location:<input type="text" name="location" value="'.$row[2].'" size="30" height="40"> </p>
<p>Entry: <textarea wrap="virtual"name="entry" cols="75"rows="10"maxlength="100">'.$row[3].'</textarea> </p>
<p>Map Point: <input type="text" name="b_locpoints" value="'.$row[5].'"size="4" maxlength="3"/> </p>
<p><input type="submit" name="submit" value="Submit" /></p>
<input type="hidden" name="submitted" value="TRUE" />
<input type="hidden" name"id" value="'.$id.'"/>
</form>';
everything else echo out fine but the text area keeps giving me errors such as
Parse error: parse error, unexpected T_VARIABLE, expecting ‘,’ or ‘;’ in … on line17