A form has multiple buton statements written in a class. How can I add different actions to different buttons for the same template?

Source: Internet
Author: User
A form has multiple buton statements written in a class. How can I add different actions to different buttons for the same template? A form has multiple buton statements written in a class. How can I add different actions to different buttons for the same template?

Reply content:

A form has multiple buton statements written in a class. How can I add different actions to different buttons for the same template?

I have written a similar document. It is based on the Django framework. But it works the same way. For more information, see.
It is mainly to give a value to none of the buttons. In the view, the value is determined by the click of the button.
Http://www.everlose.info/work/2013/04/26/django%E4%B8%AD%E4%B8%80%E4%B8%AAform%E6%9C%89%E5%A4%9A%E4%B8%AAsubmit%E7%9A%84%E5%A4%84%E7%90%86/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.