My PHP/HTML form doesn't work -


i have contact form in website , doesn't work properly. email email it's empty, don't information form.

the part of html in index.html

<form role="form" form name="contactform" method="post" action="send_form_email.php">                   <div class="form-group">                         <label>nombre</label> <input type="text" name="nombre" class="form-control" placeholder="introduce tu nombre" >                   </div>                  <div class="form-group">                         <label>apellidos</label> <input type="text" name="apellidos" class="form-control" placeholder="introduce tus apellidos" >                   </div>                  <div class="form-group">                         <label>email</label> <input type="emal" name="email" class="form-control" placeholder="introduce tu email" >                   </div>                  <div class="form-group">                         <label>telefono</label> <input type="text" name="telefono" class="form-control" placeholder="introduce tu telefono" >                   </div>                    <div class="form-group">                         <label>mensaje</label> <textarea name="mensaje" class="form-control" rows="7"></textarea>                   </div>                       <button type="submit" class="btn btn-default" value="submit">   <a href="send_form_email.php">enviar</a>                  </form>                  </div> 

the part of php file called "send_form_email.php"

    <?php $nombre = $_post['nombre']; $apellidos = $_post['apellidos']; $telefono = $_post['telefono']; $email = $_post['email']; $mensaje = $_post['mensaje']; $formcontent=" $nombre $apellidos $email $telefono $mensaje"; $recipient = "deniz946@gmail.com"; $subject = "subject $nombre"; $mailheader = "from: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("error!"); echo "thank you! possible!" . " -" . "<a href='./index.php'> site</a>"; ?> 

<input type="emal" name="email" class="form-control" placeholder="introduce tu email" > change

<input type="email" name="email" class="form-control" placeholder="introduce tu email" >

you have typo in type attribute.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -