Salut, quelques détails :
MAIS NON !!!!
JS = COTE CLIENT
PHP = COTE SERVEUR !!!
<form id="f">
<input type="text" name="a" id="a">
<input type="button" value="valider" onclick="fonctionverif();">
...
<script ...>
function fonctionverif(){
if (document.getElementById('a').value=='')
alert('rempli tt !!!');
else
document.getElementById('f').submit();
}
</script>
voila... mais n'oubli pas de vérifier quand même coté php si il y a des
champs vides car on peut facilement tromper un formulaire...
In a dream, I saw me, drop dead... U was here, U cried... It was just a deam, if I die, U won't cry, maybe, U'll be happy
[ Lien ]