Look at the source for this page and cut-n-paste as required.
Here is an example of a form for a course that has only one section.
To get your grades press this button:
Here is an example of a form for a mult-sectioned course
(note: there is only data for section M):
Please enter your username (yuXXXXXX):
Please enter your student number: