+ 3

HTML Forms

I really don't understand the part in the HTML course about forms. Can someone explain the different attributes like radio, GET, POST, input, type, name, value, method, action and URL. And is it really necessary to use those attributes when I can just use backend programming languages like Python and Php?

23rd Mar 2020, 9:36 PM
Koopa Scripter
Koopa Scripter - avatar
6 Respostas
+ 8
1. The radio button gives the user a chance to choose only one input as compared to the checkbox which allows the user to choose more than one option from a variety of options. 2. The GET method collects all the input of the users to one file when the user summits the form but its not advisable for taking user's sensitive data like password. The information still remains on the page after the user has submitted it. 3. The POST is the same as the GET method but encrypt all sensitive data, so its advisable to use that one. 4. The action is used together with the URL. 5. URL is also use the determine the destination of the form. 6. The method is used together with the POST and GET. 7. In information us to be taken from the user the input tag is used but together with the type to determine the exact type of input. Because there are variety of them like password, text, text field etc.
24th Mar 2020, 4:49 PM
ERIC OKPOTI
ERIC OKPOTI - avatar
+ 5
GET and POST methods differs in the way used to send data (commonly from forms) to the server, by appending textual key/values pairs at URL (named a 'query string'), or inside the Http header (as well as cookies, which are availabled by this way at server side). Example of Get request Url: http://mydomain.com/mysite/mypage.html?key1=val1&key2=val2 It's considered unsafe in first case (GET, data in URL), as data are visible from anybody, and mainly: > by browsers possibility it can be: - be cached - remain in the browser history - be bookmarked > just by user copying-pasting it can be: - distributed & shared - simply hacked Contrarly, in a Post method, the data is no more visible directly by an human in the Url, but is embeded in the Http header, wich is a data-set of information initiating a communication between an internet browser on a user PC through the web protocol Http to server and reciprocally (they handle for example the Http error messages when the request fail in server-bro
23rd Mar 2020, 9:58 PM
Cmurio
Cmurio - avatar
+ 3
METHOD for form :GET, POST INPUT TYPE: radio, number, text, checkbox. Check this lesson about form in html https://www.sololearn.com/learn/HTML/1035/
23rd Mar 2020, 9:47 PM
Cmurio
Cmurio - avatar
+ 2
Thank you all so much! Now I understand :)
24th Mar 2020, 7:13 AM
Koopa Scripter
Koopa Scripter - avatar
0
@Jesus Eduardo Canul Koyoc Yes I know but I don't know what Method means.
23rd Mar 2020, 9:52 PM
Koopa Scripter
Koopa Scripter - avatar
0
Please go through the corse of html again
25th Mar 2020, 1:08 PM
Prince kumar
Prince kumar - avatar