Hi, I am using Django1.0 In this request.POST.get() is not Working..It Gives empty value
My Views is: def addtask(request): r=HttpResponse() if request.method == 'POST': task = request.POST.get('task') a = "taskname"+ str(task) r.write(a) return r My Template is : function addtasks() { var task=document.getElementById("task").value; $.ajax({ url: "/simple2dos/addtask/", type: "POST", data: "val=1&task="+task, success: function(feedback){ alert(feedback); } }): } <input type="text" id="task" name="task" value=""> <input type="button" name="submit1" value="Submit" onclick="addtasks();"> If i use GET instead of POST means its working Fine.. Please Help Me.. Thanks Bharathi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---