the error is being caused by the blank line at line 23:
22- ?>
23-
24- <?php
delete the blank space between the two php tags.
whwen you have more than one form on a page, you need to make sure that that the triggers used for the behaviors are set to use the specific submit buttons for each form.