I actually didn't write this script, my (now-fired) other programmer did, so I can't tell you all the logic because I think he writes jacked up code. Unfortunately, we're too far through this project to just rip out his craziness. But yes, this is a PHP-generated page. That section is using a heredoc, which is how we have $event_id showing up without something like <?= $event_id ?>.
CrimsonDryad Web Design Services
Web Design, Custom Software Development