If you read the article you should know you cannot add a form element, you must use the PostBackUrl property of the button to set the postback url for the form that already exists in the page.
You should be able to add the rest of that markup with no problems, you just cannot add a form.
Hope that helps,
Joe