you said Get or Post are to be used when the forms are submitted,but when i used get after submitting the form,it didnt do anything .why so ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

you said Get or Post are to be used when the forms are submitted,but when i used get after submitting the form,it didnt do anything .why so ??

how to link a website when clicking on submit??

10th Jul 2016, 10:54 PM
Shubham Karn
Shubham Karn - avatar
2 Answers
+ 2
Did you expect it to get you a sandwich? jk. Forms are usually processed server-side. You'll need PHP and probably a database to handle form data.
11th Jul 2016, 2:36 AM
ZinC
ZinC - avatar
0
well, it should do 'something'... as long as there is action attribute provided - otherwise form will submit to the same url. just dont expect any form data processing - it will have to be handled by some sort of script, usually on server.
3rd Sep 2016, 6:41 PM
Jiří Tomeš
Jiří Tomeš - avatar