Click to See Complete Forum and Search --> : Passing Parameters in Java through HTML Form
hidden dragon
August 3rd, 2001, 06:42 AM
Does anybody know how to pass parameters from a java program making them the value for an input type. For example i have a database which has a list of names, which should become the value of an optionbox in a form. Once the name has been chosen from the form, a number which corresponds to the choice in the database, needs to target another input area of the form.Any ideas?
Norm
August 3rd, 2001, 12:07 PM
This sounds like a standard servlet or jsp problem. Your code will get the names from the database, build an HTML form and return that to the client.
I guess I don't understand the next part of your question:
>Once the name has been chosen from the form, a number which corresponds to the choice in the database, needs to target another input area of the form.
Is that an HTML question? How to write an HTML forum to pass a number back to the server based on the client's action?
Norm
hidden dragon
August 6th, 2001, 02:31 PM
No i just want to be able to check the db row corresponding to the name and put a number(the phone number) in another text area
Norm
August 6th, 2001, 07:34 PM
Still don't understand your question. Is it java programming or HTML forms or what? You'll have to provide more details and some program code.
Norm
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.