We created a submission that will send the data the user has entered to del.icio.us, and we gave it an id value of sub-add-link. We can now create a submit button that refers to this named submission, and when the user clicks on it, the data in the form will be sent to del.icio.us, as follows:
<xf:submit submission="sub-add-link">
<xf:label>Save</xf:label>
</xf:submit>
</body>
</html>
When you reload your form you'll notice that the submit button has been added, but it looks a little odd:
This is because the text in the submit button comes from a label just like any other form control, and we defined a CSS rule such that all labels should be 12em wide:
xf\:label
{
width : 12em;
vertical-align : middle;
margin-right : 0.2em;
}
We can easily fix this by changing our CSS rule to be more specific; we'll make it apply only to labels that are children of input controls:
xf\:input xf\:label
{
width : 12em;
vertical-align : middle;
margin-right : 0.2em;
}