<form action="/action_page.php"> <!-- send to another page or a js function? -->
<input type="text" name="name" placeholder="Name"><br>
<input type="text" name="email" placeholder="Email"><br>
<input type="text" name="phone" placeholder="Phone Number"><br>
<input type="text" name="msg" placeholder="Message"><br>
<input type="submit" value="Submit">
</form>
@Xiija… the type of input in email and phone are email and number respectively.
You missed that.
consider adding the method attribute inside the opening form element and specify what kind of request it is … either POST or GET , use POST whenever u are submitting sensitive information for security
@xija I don’t know where I should have to data sent. When I click submit it brings me to a 404.
Explain it like I’m 5 please
If you want your html webpage to send you an email, you will need some kind
of host to store a php file for mailing?
You cannot do it on Codepen ( unless mebbe as a project file??) dunno