I have this form and have issues with my $_POST data not coming through:
Form:
<form action="" id="contact-form" method="post">
           <input id="nombre" size="16" type="text" placeholder="Nombre">
           <input id="email" size="16" type="text" placeholder="Email">
           <textarea id="texto"></textarea>
           <input type="submit" value="Enviar">
PHP:
<?php
 if(!empty($_POST) {
 echo "YES";
 } else {
 echo "NO";
 }
?>
It always echoes "NO" when I complete and submit all the fields.
 
     
     
     
     
     
     
     
    