I need the user to click on the SEARCH / CONFIRM button to open a new browser window by asking SELECT one of the categories that comes directly from the database , and selecting the same window closes and the value chosen goes to the field and it would only be possible to change the category by clicking the "CLEAN FIELD" button and doing the whole process again.
It's all through javascript, but unfortunately I do not have this knowledge.
Input and buttons: (Input by default is disabled):
<div class="input_field"><label for="num"><b>Categoria</b> :</label>
<input type="text" disabled="disabled" name="categoria" size="65"><br>
<div style="margin-left:105px;"><a class="busca"><font color='#FFFFFF'>Buscar/Confirmar</font></a>
<a class="voltar"> <font color='#FFFFFF'>Limpar o Campo</font></a></div><br>
</div>
Categories.php (New window)
<table width="100%">
<thead>
<tr>
<th><center><font class="cinza_peq">Selecione</font></center></th>
<th><center><font class="cinza_peq">ID</font></center></th>
<th><center><font class="cinza_peq">Nome da Categoria</font></center></th>
</tr>
</thead>
<?php
$sql_pai = "SELECT * FROM cms_news_cat ORDER BY ID";
$res_pai = mysql_query($sql_pai) or die(mysql_error());
while($row=mysql_fetch_array($res_pai)){ ?>
<td><center><input type="radio" value="<?php echo $row['nome']; ?>" /></center></td>
<td><center><?php echo $row['id']; ?></center></td>
<td><center><?php echo $row['title']; ?> <u></u> </center></td>
</tr>
<?php } ?>
<tr>
</tbody>
</table>