views:

33

answers:

2

I have several forms each having a hidden field that identifies this form...I want to check for this field in my view then based on the result determine which form will be processed. How should i go about this?

+3  A: 

You should be using Django Forms. They are very powerful and quite extensible.

geowa4
This is what I'm using...thnks
Stephen
A: 

As long as the data is passed to the view in the post you should be able to grab it:

if request.method == "POST":
    if "hidden_field_name" in request.POST:
        ## do something
f4nt