How to make submit button work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make submit button work?

I didn't understand how to make submit button works. In condition:Suppose I make a form like: {Enter your name:-________; Enter your email:__________;.etc.} and press the submit button and Output should be look like:- for example:- (Welcome _____[name filled in the form]____ into my website...We accepted​ your email registration for email:-_____[filled in the form]_____.

18th Jun 2017, 5:06 PM
Ankit Vatsa
2 Answers
+ 6
The submit button works only inside the <form> tag. Try this😊 <form method="post" action="http://www.sololearn.com> <input type="text" name="txt"> <input type="submit"> </form>
18th Jun 2017, 5:21 PM
Marco Macdon
Marco Macdon - avatar
0
For a form to submit to an email you can give a try this trick; <form action="mailto:example@email.com" method="get" enctype="text/plain" >
18th Jun 2017, 6:59 PM
Raz
Raz - avatar