HTML表单:如何添加多个传递不同值的按钮?

I have a script that allows the posting of news. I want to be able to create a 'save as draft' button next to the 'publish' button. How can I allow the 'save as draft' button to pass a value to the back end?

I just need a simple 1 or 0 depending on which button was pressed, I'm using php by the way.

<input type="submit" name="saveasdraft" value="Save as Draft">
<input type="submit" name="save" value="Save">

And then you can detect which button was pressed at the backend by their name. The one that was pressed will be present in the submitted form fields. The others won't be.

You can use multiple form elements.