<form is="ajax-form" action="/quizelement/core/" method="get" >
<paper-input floatinglabel multiline label="username"
name="username"></paper-input>
<paper-input floatinglabel multiline label="password"
name="password"></paper-input>
<input type="submit" value="login">
</form>
i am trying to get data from the form to server with backend using django
server code is as follows
def core(request):
if 'username' in request.GET:
message = request.GET['username']
else:
message = 'You submitted an empty form.'
return HttpResponse(message)
it is replying as You submitted an empty form
can someone help me please
thanks in advance
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/6ed80c78-1ff1-4dbd-9d6f-c2107eb0fc24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.