Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def emailform(request):
- email_form = emailforms(request.POST or None)
- if request.POST:
- if email_form.is_valid():
- email_data = email_form.cleaned_data['email']
- s=Userdetails()
- s.email=email_form.cleaned_data['email']
- s.save()
- return render(request,'email_form.html',{'form':email_form})
Add Comment
Please, Sign In to add comment