title: NameError - global name not defined
body: <p>I am trying to read some data from html forms and insert it into database. Doing so i am stuck with this error "NameError at /createEmployee/ : global name 'get_post_param' is not defined" ; i will paste my code here. Can somebody help me to solve this.<br>
  <strong>VIEWS.PY</strong> </p>
  
  <pre><code>def createEmployee(request):
      if request.method == "POST":
          userName = get_post_param(request,"userName")
          designation = get_post_param(request,"designation")
          employeeID = get_post_param(request,"employeeID")
          contactNumber = get_post_param(request,"contactNumber")
          project = get_post_param(request,"project")
          dateOfJoin = get_post_param(request,"dateOfJoin")
          EmployeeDetails(userName=userName,designation=designation,employeeID=employeeID,contactNumber=contactNumber,project=project,dateOfJoin=dateOfJoin).save()
          return render_to_response('createEmployee.html')
      else:
          return render_to_response('createEmployee.html')
  </code></pre>
  
  <p><strong>TEMPLATE.PY</strong>  </p>
  
  <pre><code>&lt;form action="http://127.0.0.1:8000/createEmployee/" method="POST"&gt; 
  Name: &lt;input type="text" name="userName" /&gt;&lt;br /&gt;
  Designation: &lt;input type="text" name="designation" /&gt;&lt;br&gt;
  EmployeeID: &lt;input type="text" name="employeeID" /&gt;&lt;br&gt;
  Contact Number: &lt;input type="text" name="contactNumber" /&gt;&lt;br&gt;
  Project: &lt;input type="text" name="project" /&gt;&lt;br&gt;
  Date Of Join: &lt;input type="text" name="dateOfJoin" /&gt;&lt;br&gt;
  &lt;input type="submit" value="Submit" /&gt;&lt;br /&gt;
  &lt;/form&gt;
  </code></pre>