PHP code contact form
-
I have a contact form that I’ve developed from PHP. I love using it, because it’s taken me a while to get it where it is today, and it’s very effective and easy to use. However, it depends upon 3 files:
1) contact.php – the file where the script is located, all functions are contained within this file.
2) contact.html – the “layout” for the page. this is where they header and footer are, sidebar – all of that. The form elements, everything.
3) accept.html – the “thank you” page that’s shown after the form is submitted.
Now, I want my contact page to be part of my site. I’ve tried making it a “Page” in wordpress, but the PHP comes in all screwed up – most likely because the PHP in word press is conflicting with the PHP in my form files. I’ve tried placing the form outside of wordpress and just calling it by a link, but the problem with thatis I have to update every item on the page (sidebar stuff) anytime I update my site – which is a huge PITA.
Is there some way I can save my html files as pages, and have my contact.php file call in those pages into the contact form – so wordpress will update the sidebar as needed, but not conflict with the functions of my contact form?
I’m just at a loss as to what to do here.
- The topic ‘PHP code contact form’ is closed to new replies.