I\'m using Fancybox to have a contact form pop up when a link is clicked. Then it POSTs the form data to a php file, an email goes out and a success message comes back.
It was a simple mistake, I was putting the script above in its own tags instead of in the main fancybox attach script. My final code is:
script