views:

16

answers:

0

I'd like to display a simple success or failure message in a lightbox on a website that I'm developing. The form submits to a PHP page that simply assembles some mail, sends it off, and then formats the appropriate message depending on the success or failure of the mail. I submit the form with a traditional <input type="submit"> button to allow the site to work fine even if JS is turned off. The thought is to use vanilla JS or jQ to then capture the click and display the results in an iframe, hopefully with prettyPhoto so I don't have to copy their styles.

Thanks in advance!