lo que vos queres hacer es una validacion ...
Es mucho mejor si la haces con JavaScript ... este no es el lugar correcto, pero no hay problema ..
Código HTML:
<script>
function validar(){
if(f1.tunombre.value != "" && f1.tuemail.value != "" && f1.nombreamigo.value != "" && f1.mailamigo.value != ""){
document.f1.submit()
}else{
window.alert('Por Favor complete todos los campos!!!');
}
}
</script>
<form method=POST action=enviar.php name=f1>
Tu nombre:<br>
<input type=text name=tunombre size=20><br>
Tu email:<br>
<input type=text name=tuemail size=20><br>
Nombre de tu amigo:<br>
<input type=text name=nombreamigo size=20><br>
Email de tu amigo:<br>
<input type=text name=emailamigo size=20><br>
<br>
<input type="button" value=Recomendar name=B1 onClick="validar()";></p>
</form>
fijate que he modificado algunas cosas del form .. como el nombre del form ... el tipo del boton lo cambie por button, para poder llamar al JavaScript ... saludos...