Horje

How to add HTML <button> formenctype application/x-www-form-urlencoded Attribute

application/x-www-form-urlencoded Default. All characters will be encoded before sent
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The button formenctype attribute</h1>

<form action="/action_page_binary.asp" method="post">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname" value="Ståle"><br><br>
  <button type="submit">Submit with character encoding</button>
  <button type="submit" formenctype="application/x-www-form-urlencoded">Submit without character encoding</button>
</form>

</body>
</html>

Output should be:

How to add HTML <button> formenctype application/x-www-form-urlencoded Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin