Thanks for the reply Jeremey. I am struggling a bit with this one. The above links suggest that putting more complex php code (such as database updates or e-mails) inside filters/shortcodes can be problematic, especially when filtering $content as I am doing.
I've been exploring options all day, and as I'm the first to admit, I'm a novice at this, a hobby programmer who loves the hobby.
What I'm trying to accomplish is to allow the user to put a fairly simple form in the content of a page of their creation. Once the input is posted I want to validate the data, add the data to the database, and send an e-mail.
The way I've injected the form/function is by using an
What would be a better way to add the form to the content of a page post?
A way that prevents double posting.
Any pointers or suggestions would be greatly appreciated!