• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Lose of data while getting from the dropdown box

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi this is Shamemm...
I am facing the problem while getting the data from the dropdown box.

<select class="dropdown1" name="bloodgroup" autocomplete="off" abindex="22">
<option value="aa" selected>--select--</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
</select>

Suppse I select bloodgroup as A+,A-,B+...etc and click on the save button when I try to get the dropdown box value like this...

String strBloodgrp=request.getParameter("bloodgroup");
I am getting the strBloodgrp(out put of strBloodgrp) like this...
A,B,AB etc...
but I accpecting the strBloodgrp(out put of strBloodgrp) like this...
A+,A-,B+,B-,AB+ ,etc...
can we get the out put like this...
I tried this with hidden fields also but I didn't get the out what I accepect...
Please any one can Repply me..
Thanks & Regards..
Shameem.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic