It's not a secret anymore!
The moose likes Servlets and the fly likes Javascript or vbscript and ASP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript or vbscript and ASP" Watch "Javascript or vbscript and ASP" New topic

Javascript or vbscript and ASP

shiva susan

Joined: Oct 31, 2008
Posts: 1

In one form i have multiple check boxes and textboxes.

for ex:
1 row: "checkbox" Car "textbox" Red color
2 row: "checkbox" Car "textbox" Yellow color
3 row: "checkbox" Bicycle "textbox" Green color
4 row: "checkbox" Scooter "textbox" Red and white color
5 row: "checkbox" Bicycle "textbox" Black color

Now i select 2 checkboxs (1st row checkbox and 4th row checkbox).
i want to pass the 1st row checkbox and textbox value (Car, Red color) and 4th row checkbox and textbox value(Scooter, Red and white color) pass into database. How? I didn't want to store the remining checkboxs and textboxs value. I want to store the selected rows checkbox and textbox value.

It's very very urgent work..... please help me....
Regards & Thanks,
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
"Javascript or vbscript and ASP" how this subject is related to your problem?

Browser will include only those checkboxes in the request which were selected. Unselected checkboxes are not part of the request. Also you can programmatically store the desired checkboxes only.

My Blog
I agree. Here's the link:
subject: Javascript or vbscript and ASP
It's not a secret anymore!