Form without js - mikehov/Dating-app GitHub Wiki
Mike Hovenier | Tech-4
You don't need JavaScript for your client to make a form. If you have a server that's running node.js, it will run the JavaScript there. So you only need HTML/CSS but you need to implement some attributes to send that information to the server. Attributes like "method" can send information to the server. For the method you have GET and POST as options to fill in. But becareful by using GET, GET isn't really safe, it will only be used if security isn't a concern. GET will try to find information from the server, POST will post information on the database or change things in the database. The "action" attribute is where you are sending it to, so what server. This is the following code I want to use for my Dating-app.
Autocomplet is a nice way to let the page remind your users information he allready filled in on your page. You can use that information over and over again. By doing the following:
<label for="form_name" >First Name: </label>
<input id="form_name" name="app_user_name" autocomplet="given-name"/>
<label for="form_phone" >Phone: </label>
<input id="form_phone" name="app_user_phone" autocomplet="tel"/>
Now it will remember the "given-name", besides "given-name" and "tel" there are more. For example card numbers and telephone numbers.
Sarzyński, Ł. (n.d.). fill HTML forms without JavaScript. Retrieved May 26, 2020, from https://dev.to/lukaszsarzynski/fill-html-forms-without-javascript-4d24
Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media. (n.d.). Attribute for METHOD = GET | POST. Retrieved May 26, 2020, from https://html.com/attributes/form-method/