![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 6
Rep Power: 0
![]() |
Checking form input
Ok... I'm trying to link an html form to java, so as to check the input against the input i'm looking for (like a password almost). I'm pretty sure that i could use an if-then loop to do it, but how would i write it so it takes the input from the form and sets it as a variable?
If there is an easier way to do this with just java I wouldnt mind seeing that either. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
I'm assuming you're talking about AWT or Swing.
You'll need to setup a button listener for the sumbit button, and when that button is clicked you can use passwordTextbox.getText(); to get the text out of the box. Check the Java API, there's a bunch of tutorials on this. http://java.sun.com/j2se/1.5.0/docs/api/ here ya go. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|