Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 31st, 2005, 7:47 AM   #1
Jerry
Newbie
 
Join Date: Jun 2005
Posts: 6
Rep Power: 0 Jerry is on a distinguished road
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.
Jerry is offline   Reply With Quote
Old Oct 31st, 2005, 8:41 AM   #2
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
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.
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:55 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC