Basic submit button - save text

DarkFX

New Member
I'm new and want to learn something about the submit button. I'm working on a very small program. You can write some names and then I want to save their values and use them in my Javascript code. What I exactly want is call all of the textboxes so I can use the value (the names) in my Javascript.\[code\] <form name="input" action="#" method="post"> <table> <tr> <td> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> <input type="text" name="txt" value="http://stackoverflow.com/questions/14422709/Insert name"><br/> </td> </tr></table> <input type='submit' >\[/code\]Edit: So the next question is just how do I make a button that will run the javascript? When the user finished type names, he can press the button and then will the javascript run and stack the 'txt' values in an input array? I know how to make the javascript, but the button is the problem. How do I make that?
 
Back
Top