Hola
fremeto
A ver si esto te sirve:
Código PHP:
<html>
<head>
<script type="text/javascript">
function validar(frm) {
for (i=0; ele = frm.elements[i]; i++)
if (ele.type=='text')
if (ele.value=='') {
ele.focus();
return false;
}
}
</script>
</head>
<body>
<form action="algo.php" onsubmit="return validar(this)">
<input type="text" name="txt[]" />
<input type="text" name="txt[]" />
<input type="submit" />
</form>
</body>
</html>
Saludos,