Tengo el siguiente Form que me permite insertar datos a una BD
Código PHP:
<?php
echo "<html>
<head>
<title>.: Adicionar nuevas Plantas :.</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<style type=\"text/css\">
body{ scrollbar-face-color: #aaaaaa; scrollbar-highlight-color: #aaaaaa;
scrollbar-shadow-color: #aaaaaa; scrollbar-3dlight-color: #eeeeee; scrollbar-arrow-color: #eeeeee;
scrollbar-track-color: #e3e3e3; scrollbar-darkshadow-color: #000000;}
TD { font-family: Tahoma; font-size: 11px; }
TH { font-family: Tahoma; font-size: 13px; }
TEXTAREA { border-bottom-width: 1px; border-color: #000000; border-left-width: 1px;
border-right-width: 1px; border-style: solid; border-top-width: 1px; font-family: Tahoma;
font-size: 10px; font-weight: bold; text-indent: 2px; }
INPUT { border-bottom-width: 1px; border-color: #000000; border-left-width: 1px;
border-right-width: 1px; border-top-width: 1px; color: #000000; font-family: Tahoma;
font-size: 10px; font-weight: normal; text-indent: 2px; }
SELECT { background-color: #FFFFCC; font-family: Tahoma; font-size: 10px;
font-weight: bold; }
A:link { background-color: transparent; color: #215D83;
font-family: Tahoma; font-size: 9px; text-decoration: none; }
A:visited { background-color: transparent; color: #990000;
font-family: Tahoma; font-size: 9px; text-decoration: none; }
A:hover { background-color: transparent; color: #215D83;
font-family: Tahoma; font-size: 9px; text-decoration: none; }
A:active { background-color: transparent; color: #215D83; font-family: Tahoma;
font-size: 9px; text-decoration: none; }
.info {
CURSOR: hand; BORDER-BOTTOM: #00cc00 1px; TEXT-DECORATION: none
}
.outline { color: #000000; font-family: tahoma, verdana,arial,helv;
font-size: 11px; font-weight: normal; border-left-width: 1px; border-right-width: 1px;
border-top-width: 1px; border-bottom-width: 1px; border-style: solid; border-left-color: #000000;
border-right-color: #000000; border-top-color: #000000; border-bottom-color: #000000; }
</style>
<body topmargin=\"0\" leftmargin=\"0\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td> </td>
</tr>
<tr>
<td><form action=\"newadded.php\" method=\"post\" name=\"addnew\">
<table width=\"75%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td colspan=\"2\"><div align=\"center\"><strong>Insertar plantas a la Base de Datos</strong></div></td>
</tr>
<tr>
<td>Tipo:</td>
<td><p>
<label>
<input type=\"radio\" name=\"opciones\" value=\"anticancerigena\">
</label>
Anticancerígena<br>
<label>
<input type=\"radio\" name=\"opciones\" value=\"hipoglicemiante\">
</label>
Hipoglicemiante<br>
</p></td>
</tr>
<tr>
<td width=\"25%\">Familia:</td>
<td width=\"75%\"><input name=\"family\" type=\"text\" id=\"family\" size=\"45\"></td>
</tr>
<tr>
<td>Nombre Científico:</td>
<td><input name=\"cientificname\" type=\"text\" id=\"cientificname\" size=\"45\"></td>
</tr>
<tr>
<td>Nombre Común:</td>
<td><input name=\"commonname\" type=\"text\" id=\"commonname\" size=\"45\"></td>
</tr>
<tr>
<td>Tipos de Cáncer estudiados:</td>
<td><input name=\"cancertype\" type=\"text\" id=\"cancertype\" size=\"45\"></td>
</tr>
<tr>
<td>Parte de la planta empleada:</td>
<td><input name=\"plantspart\" type=\"text\" id=\"plantspart\" size=\"45\"></td>
</tr>
<tr>
<td>Preparación:</td>
<td><input name=\"preparation\" type=\"text\" id=\"preparation\" size=\"45\"></td>
</tr>
<tr>
<td>Tipo de estudio:</td>
<td><input name=\"studytype\" type=\"text\" id=\"studytype\" size=\"45\"></td>
</tr>
<tr>
<td>Metabolitos responsable de la actividad:</td>
<td><textarea name=\"metabolitos\" cols=\"50\" wrap=\"VIRTUAL\" id=\"metabolitos\"></textarea></td>
</tr>
<tr>
<td>Referencia:</td>
<td><input name=\"reference\" type=\"text\" id=\"reference\" size=\"50\"></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan=\"2\"><div align=\"center\">
<input name=\"add\" type=\"submit\" id=\"add\" value=\"Adicionar\">
<input name=\"delete\" type=\"submit\" id=\"delete\" value=\"Borrar datos\">
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>";
?>
Lo que quiero hacer es que al yo seleccionar un radio button ya sea el de value anticancerigena o hipoglicemiante me inserte los datos en la Base de Datos pero en la tabla correspondiente, es decir, mi BD se llama pepe y tengo dos tablas tabla1 y tabla2, lo que quiero hacer es que al seleccionar el primer radio me seleccione la BD y me inserte los datos en tabla1 y al seleccionar el segundo me inserte los datos en la misma BD pero en tabla2.
¿Me explico bien?