What i am trying to do is, chose a letter template and have it load automatically into a text area without having to hit submit, so if ther are 5 choices and i chose one and it it highlighted, then automatically the btext that is echoed in the textarea the result show up. If anyone can help, I am staying online tonight to figure this out, i know this seems easy, but i guess not for me.
<?php
$letterresult = mysql_query("SELECT * FROM tletters");
echo "<p>Letter <select>\n";
if ($myrow = mysql_fetch_array($letterresult)) {
do {
printf("<option value=\"%s\">%s</option>\n", $myrow["id"], $myrow["lettername"]);
} while ($myrow = mysql_fetch_array($letterresult));
echo "</select></p>\n";
} else {
echo "Sorry, no records were found!";
}
?>
<textarea name="textmail1" cols="80" rows="5"><?echo $myrow["btext"];?></textarea>