What gets shown inside Shadowbox is
outside your form .. because it's a
copy of the inline HTML.
Also, because it's a copy, an ids within the inline section of code will be
duplicated into Shadowbox, thus making them non-unique; and any reference to them will probably pick up the original element, not the one inside the Shadowbox. Any javascript-attached events will also stay with the original code, and not be copied over into Shadowbox.
Combine literacy with curiosity and a whole world of information opens up to you