php
/* * * * * * * * * * * * * * */ <select name="tip"> <option value="0">Seleccione el tipo de mascota</option> <option value="<?php echo $reg['id_tipo_mascota'] ?>"> <?php echo $reg['nombre_tipo'] ?> </option> <?php } ?> /* * * * * * * * * * * * * * */ if(document.form.tip.value==0) { alert("Seleccione un tipo de mascota"); document.form.tip.focus(); return false; }