title: How to give multiple values to a single key using a dictionary?
body: <p>I have a html form which has <code>Firstname</code>, <code>LastName</code>, <code>Age</code> and <code>Gender</code> and a <code>ADD</code> button. 
  I enter the data into the form and that gets into the Berkeelys db. What my code does is it prints only the last values. I want that it should show all the values related to particular key</p>
  
  <pre><code>#!/usr/bin/python
  
  import bsddb
  import cgi
  
  form = cgi.FieldStorage()
  
  print "Content-type:text/html\n"
  Fname = form.getvalue('firstname', '')
  Lname = form.getvalue('lastname', '')
  Age = form.getvalue('age', 0)
  Gender = form.getvalue('gender', '')
  
  #print Fname, Lname, Age 
  
  db = bsddb.hashopen("/home/neeraj/public_html/database/mydb.db","w")
  db['FirstName'] = Fname  
  db['LastName'] = Lname
  db['Age'] = Age 
  db['Gender'] = Gender
  db.close()
  db = bsddb.hashopen("/home/neeraj/public_html/database/mydb.db","r")
  #db = bsddb.hashopen("/home/neeraj/public_html/database/mydb.db")
  print db['FirstName'], db['LastName'], db['Age'], db['Gender']
  db.close()
  print db 
  </code></pre>