Don't use showHtml, it will only force you to pass the HTML as string.
You can use a standalone HTML page and pass the form data back to the main page (DayPilot.Modal.onClosed event) using DayPilot.Modal.Close(data). See the tutorial, it passes the AJAX callback result that way.