Forum Moderators: coopster
<div align="center">
<font size="4" color="<?=$title_color?>"><b><?=$title?></b></font>
<form method="post" action="<?=$PHP_SELF?>">
<input type="hidden" name="do" value="add">
<table width="460" border="0" cellspacing="1" cellpadding="5">
<tr bgcolor="<?=$table_content_1a?>">
<td>
<textarea name="vcomment" cols="40" rows="7" wrap="virtual"></textarea>
</td>
</tr>
<tr bgcolor="<?=$table_content_1b?>">
<td>
<div align="center">
<font size="2">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
<input type="button" value="Back" onclick="window.location='<?="$PHP_SELF?page=$page"?>'">
</font>
</div>
</td>
</tr>
</table>
</form>
</div>
<textarea name="vcomment" cols="40" rows="7" wrap="virtual"><?php if(isset($_POST["radio"])) echo $_POST["radio"];?></textarea><input type="radio" name="radio" value="test1">
<input type="radio" name="radio" value="test2">
I'm not sure what you want to achieve with that, but this will put selected radio into textarea
Michal Cibor
<div align="center">
<font size="4" color="<?=$title_color?>"><b><?=$title?></b></font>
<form method="post" action="<?=$PHP_SELF?>">
<input type="hidden" name="do" value="add">
<table width="460" border="0" cellspacing="1" cellpadding="5">
<tr bgcolor="<?=$table_content_1a?>">
<td>
<textarea name="vcomment" cols="40" rows="7" wrap="virtual"><?php if(isset($_POST['radio'])) echo $_POST['radio'];?></textarea>
</td>
</tr>
<tr bgcolor="<?=$table_content_1b?>">
<td>
<div align="center">
<font size="2">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
<input type="button" value="Back" onclick="window.location='<?="$PHP_SELF?page=$page"?>'"><br><br>
<input type="radio" name="radio" value="test1"> test1<br>
<input type="radio" name="radio" value="test2"> test2<br>
</font>
</div>
</td>
</tr>
</table>
</form>
</div>
<textarea name="text_area" id="text_area"></textarea>
...
<input type="radio" name="radio" onclick="js_text('test1')" value="test1">
...
This should work. If you use mozilla I recommend using javaScript consol
Best regards
Michal Cibor
PS. Have you tried looking at the source code?