I know how to do this for if else, but I have 8 fields where you can have only 1,2,3 ... blank fields and I have to check if the field is blank and if it is not updating in DB, I wanted to know if you have the easiest way.
<form action="alteraroficioC1.php" method="post" enctype="multipart/form-data">
<tr><th>Nº</th><td><?php echo $idget ?></td><td>Alterar para: </td><td></td></tr>
<tr><th>Data</th><td><?php echo $dataof ?></td><td><input type="input" name="data" id="<?php echo $idInput; ?>" onkeyup="mascaraData(<?php echo $idInput; ?>);" maxlength="10" placeholder="dd/mm/aaaa" /></td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr>
<tr><th>Solicitado por</th><td><?php echo $solicitado ?></td><td><input type="text" name="nomePor" </td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr>
<tr><th>Destino/Unidade</th><td><?php echo $destino ?></td><td><input type="text" name="nomePor" </td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr>
<tr><th>Setor</th><td><?php echo $setor ?></td><td><input type="text" name="nomePor" </td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr>
<tr><th>Para/Pessoa</th><td><?php echo $nomepara ?></td><td><input type="text" name="nomePor" </td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr></tr>
<tr><th>Nome</th><td><?php echo $nome ?></td><td><input type="text" name="nomePor" </td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr></tr>
<tr><th>Assunto</th><td><?php echo $assunto ?></td><td><input type="text" name="nomePor" </td><td><input type="image" src="../images/save_01_16x16.png" name="id" value="<?php echo $manid; ?>"></td></tr></tr>
<input type="hidden" name="idd" value="<?php echo $idget; ?>"/> <? // para redirect()?>
</form>