Do I want to call parts of my html template in my view?
something like this
$ ticket_date = $ this- > input-> post ('ticket_date'); in php,
but I do not know how to do it.
Someone knows, please help me
Do I want to call parts of my html template in my view?
something like this
$ ticket_date = $ this- > input-> post ('ticket_date'); in php,
but I do not know how to do it.
Someone knows, please help me
To access the POST object from the views you must use the request object that your view receives. There all the variables are packaged in a dictionary.
#archivo views.py
def tu_vista(request):
fecha_ingreso = request.POST.get('fecha_ingreso', 'valor por default')