<fieldset style="padding: 20px;">
<legend>Send Us A Message</legend>
<label for="name">Name</label>
<input type="text" name="name" id="name" placeholder="David" required autofocus><br><br>
</fieldset>
<button type="submit">Send</button>
<button type="reset">reset</button>
I have changed to but still doesn't work
CodePudding user response:
Please use <form>
or add js code
<form>
<fieldset style="padding: 20px;">
<legend>Send Us A Message</legend>
<label for="name">Name</label>
<input type="text" name="name" id="name" placeholder="David" required autofocus><br><br>
</fieldset>
<button type="submit">Send</button>
<button type="reset">reset</button>
</form>
or add js code
Please let me know if this help.
CodePudding user response:
use form tag <form> </form>
<form>
<fieldset style="padding: 20px;">
<legend>Send Us A Message</legend>
<label for="name">Name</label>
<input type="text" name="name" id="name" placeholder="David" required autofocus><br><br>
</fieldset>
<button type="submit">Send</button>
<button type="reset">reset</button>
</form>
CodePudding user response:
As in above answer, you need to use But also you need to specify action and method
<form method="POST" action="registration.php">