Answer the question
In order to leave comments, you need to log in
Do I need to fill in form attributes?
<form class="contacts__form" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" method="POST">
<input type="email" name='email' class="contacts__form-elem" placeholder="Enter Email" required>
<input type="tel" name="tel" class="contacts__form-elem" placeholder="Phone" required>
<textarea name="msg" class="contacts__form-elem" placeholder="Message" required></textarea>
<button type="submit" name="submit" class="contacts__submit submit btn">
Contact US <i class="fas fa-chevron-right"></i>
</button>
</form>
Answer the question
In order to leave comments, you need to log in
type of protection against various attacks through forms?for this tokens are used.
At the same time, whether it is necessary to fill in the attributes of the action method formIt is not particularly important, if the server has a method check and the request url will not process the left data, then everything is ok.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question