# Filling textarea with php variable

**URL:** <https://forum.kirupa.com/t/filling-textarea-with-php-variable/248123>\
**Category:** Uncategorized\
**Created:** [January 4, 2008, 2:47am UTC](https://forum.kirupa.com/t/filling-textarea-with-php-variable/248123 "2008-01-04T02:47:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tge1986](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@tge1986](https://forum.kirupa.com/u/tge1986)\
**Post date:** [January 4, 2008, 2:47am UTC](https://forum.kirupa.com/t/filling-textarea-with-php-variable/248123/1 "2008-01-04T02:47:35Z")

</div>

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.

```php

    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
