KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How would I call on the following multiple submit forms -- <form action="/" method="post"> {% csrf_token %} <input type="text" name="{{ email.id }}" value=" {{email}}"></td> <td><input type="submit" value="Edit"></td> <td><input type="submit" value="Delete"></td> </tr> </form> I want to do something like this -- if value = edit: do this if value = delete: do this How would I code this in the views.py file?
Tags (comma-separated)
Save Edits
Cancel