<textarea name="primary_goals[]" rows="5" cols="23" style="height:145px; width:325px;"><?php echo $primary_goals; ?></textarea>

textarea value is stored in database
primary_goals[] array stores the values enterd in textarea..
how can i display this value again in this text area

Before echoing $primary_goals to the text box, retrieve it from your database. How you do it depends generally on which database you are using. It might be worth looking for a tutorial on how to read values from a database. If you are using MySQL for example, search for SELECT statements. Try studying at example #2 here:
http://php.net/manual/en/function.mysql-query.php

Member Avatar

diafol

textarea value is stored in database
primary_goals[] array stores the values enterd in textarea..
how can i display this value again in this text area

This doesn't make much sense to me. You only have one textarea, so why have you got an array in the name attribute? You're already placing $primary_goals into the textarea - so what exactly do you need?

$row=mysql_fetch_array(mysql_query("select * from table_name"));
....
....
<textarea name="name_of _textarea" rows="5" cols="23" style="height:145px; width:325px;"><?php echo $row['fieldname']; ?></textarea>
Member Avatar

diafol

Sorry I'm still none the wiser. Anybody else?