• 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Lose of data while getting from the dropdown box

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>

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..
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic