+ 3

Html submit input

how should i use the : <input type="submit"></input> in javascript?

3rd Jan 2017, 12:23 PM
Milan Zanden
Milan Zanden - avatar
9 Answers
+ 6
<form action="http://www.facebook.com" method="get"><input type="text" name="email" value=""><input type="text" name="pass" value=""></form> this will make the following link: http://www.facebook.com?email=value1&pass=value2 email & pass are the names of the inputs which form a key with their values (user sets them)
3rd Jan 2017, 12:45 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
You shouldn't , everything is done automatically (although you could use the .submit() method to trigger submit manually)
3rd Jan 2017, 12:28 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
The form is submitted and all inputs are converted into a link.
3rd Jan 2017, 12:32 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
https://code.sololearn.com/WtpxE00yFtv8/?ref=app Do a google search with this code and see the link (it's based on input names and values)
3rd Jan 2017, 12:33 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
email schematic/protocol is "mailto:" e.x. mailto:alternativexxxy@gmail.com
3rd Jan 2017, 12:34 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
having a bigger example?
3rd Jan 2017, 12:39 PM
Milan Zanden
Milan Zanden - avatar
+ 2
what happens when i hit that button?
3rd Jan 2017, 12:30 PM
Milan Zanden
Milan Zanden - avatar
+ 2
okay, i want to make a login form where tge information will be send to my mail adress, any ideas?
3rd Jan 2017, 12:33 PM
Milan Zanden
Milan Zanden - avatar
+ 2
thank you, that really helpdd me :)
3rd Jan 2017, 12:35 PM
Milan Zanden
Milan Zanden - avatar