Código HTML:
<form action="create.php" method="post" name="Gastos" onsubmit="return validateForm()"> <fieldset> <div>Nombre Completo<font color="red">*</font>:<input type="text" name="form_name" size="30" style="width:20%;" maxlength="70" placeholder="Nombre Completo"> <label>Departamento<font color="red"></font>: <select size="1" name="form_depa"> <optgroup label="Departamento"> <option value="">Selecciona un departamento</option> <option>Administracion - 1200</option> <option>Ventas - 1400</option> <option>Servicios - 1600</option> <option>Instalacion - 1600</option> </select></label></div> <br><br> </fieldset> <p>