File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes PHP and the fly likes How to use optgroup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » PHP
Reply locked New topic

How to use optgroup

Mahtab Alam
Ranch Hand

Joined: Mar 28, 2012
Posts: 388

How to work with optgroup , to retrieve the selected option.
I want to insert the selected option in the database , how can i do that.

How to get the selected value and make a query to insert in the table in database.

Oracle Java Programmer , Oracle SQL Expert , Oracle Java Web Component Developer, Oracle Web Service Developer
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

The same way as any other select element. The use of optgroups does not change how a select functions.

Please continue in your original post.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: How to use optgroup
It's not a secret anymore!