0
I have a form already formatted in CSS and HTML. How do I receive the data informed in the form, after filling?
I don’t understand much about PHP.
<form class="w3-container" id="contato">
<p>
<label><b>Nome</b></label>
<input class="w3-input w3-animate-input" type="text" id="nome"></p>
<p>
<label><b>Sobrenome</b></label>
<input class="w3-input w3-animate-input" type="text" id="empresa"></p>
<p>
<label><b>E-mail</b></label>
<input class="w3-input w3-animate-input" type="text" id="email"></p>
<p>
<label><b>Telefone</b></label>
<input class="w3-input w3-animate-input" type="text" id="telefone"</p>
<p>
<input type="submit" class="w3-btn w3-center w3-gray" style="margin-left:270px">
</form>
I use the attribute method
in form
? How to send the informed data to a specific address?
You need to understand the minimum php... In your form you have a
method
and aaction
, then where to point theaction
vc captures value by variables$_POST['name_do_campo'] ou $_GET['name_do_campo']
depending on the method you use... http://php.net/manual/en/reserved.variables.post.php Consider making a [tour] and edit your question to receive a reply and avoid closing it,,,– MagicHat
Take a look here :https://answall.com/help/mcve put your html code...
– MagicHat
What you want is to send the form data to an email?
– Gabriel
Exactly! That’s exactly what I need.
– Leonardo Matiazzo
Leonardo, now seeing the final comments, send to the email already a little more advanced, but not much, the fact is that in this way seems to me to be skipping steps, here the staff likes to help, but I believe that did not understand the operation of the site right, the way your question becomes wide and possibly will be closed... Understand how a constructive criticism, do not skip steps, here you will get answers to all your questions, as long as your question is within the mold ... Read [help] calmly, and divide your problems into small parts... Good Luck !
– MagicHat