-1
I would like to know, if there is a script, a way to send the content contained in the "textarea" to an email. Thanks in advance!
-1
I would like to know, if there is a script, a way to send the content contained in the "textarea" to an email. Thanks in advance!
0
You can take the value of <textarea>
by the method POST
of Form
, example:
<form method="post" action="query.php">
<textarea name="texto"></textarea>
<input type="submit" />
</form>
And then pick up with the $_POST
php:
$conteudo = $_POST['texto'];
And send the email normally:
mail($destinatario, $assunto, $conteudo, "From: [email protected]");
//Onde a variavel $assunto contem o assunto do email e $destinatario, pra quem o email será enviado
php.ini
!Behold that, if you have more questions. Or official documentation.
Browser other questions tagged php javascript jquery html html5
You are not signed in. Login or sign up in order to post.
Show the code you developed.
– user60252