Alguém pode me ajudar por favor?
Eu vi isto na net e tentei aproveitar, no entanto no meu email recebo os campos "Nome:" e "Email:" mas estão completamente vazios, mas ao enviar eu envio com os campos preenchidos!
index.html
<form method="POST" action="newsletter.php">
<li>
<input type="text" class="text" value="Nome" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Nome';}">
<a class="name" href="#"></a>value="Nome">
</li>
<li>
<input type="text" class="text" value="Email" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Email';}">
<a class="mail" href="#"></a>value="Email">
</li>
<input type="submit" value="submit">
</form>
newsletter.php
# RESULT PAGE
$location = "";
## FORM VALUES ##
# SENDER - WE ALSO USE THE RECIPIENT AS SENDER
# DON'T INCLUDE UNFILTERED USER INPUT IN THE MAIL HEADER!
# SEE ALSO: How to protect a php Email Form using php mail or mb_send_mail against Mail Header Injection
$sender = $recipient;
# MAIL BODY
$body = "Name: ".$_REQUEST['Nome']." \n";
$body = "Email: ".$_REQUEST['Email']." \n";
# add more fields here if required
## SEND MESSGAE ##
mail($subject, $body, "From: $sender" ) or die ("O email não pode ser enviado.");
## SHOW RESULT PAGE ##
header( "Location: $location" );
?>
Obrigado