I need to stick this getThemePath(); thing in the middle of a redirect script

Permalink
Can't figure out how the correct way to do this.

Original redirect:
$formproc->RedirectToURL("thank-you.php");


My attempt to stick the getThemePath() script in there:
$formproc->RedirectToURL(" <?php echo $this->getThemePath(); ?>/thank-you.php");


^ it's not working, obviously. I have tried a dozen different things. No idea how to fix that. Anyone help?


UPDATE: uhhhhh, I just realized I think I'm using the wrong C5 snippet. GetThemePath() won't work for this at all, will it? Something like header('Location: ' . $nav->getLinkToCollection($c, true)); is probably what I need except I have no idea what the correct C5 syntax is for redirecting to my 'thank-you.php' page.