PHP Code:
$pulltemplate = mysql_query("SELECT id,name,content FROM templates");
<form action="list.php?do=edit" method="POST">
<select name="option">
<?PHP
while($row = mysql_fetch_array($pulltemplate,MYSQL_NUM)) {
echo "<option value=\"$row[1]\">$row[1]</option>\n";
}?>
</select>
<input type="Submit" name='$row[1]' Value="Edit" />
</form>
if($_REQUEST['do']=='edit'){
?>
<textarea rows="20" cols="50"><?php echo $pee; ?> </textarea><?php
}?>
my question is how do i get the variable choosen $row[1] to pull the data when submit is clicked for the value located in the list
eg. if the list contains: a,b,c,d how would i pass the info in the variable to be able to edit the info.