hi , i am a beginner in jsp, can any one help me how to send the radio button values in to db


i used radio button as
<input type ="radio" name="status" value ="single" checked>
and onother is
<input type ="radio value ="married" name ="status"/>

how can i pass these values in to the query stirng

They need to be part of the form. On submit event you will get redirected to servlet (I hope) where you call the value as follows String status = request.getParameter("status");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.