How to include external php file on wp?
-
I’ve made one page-contact.php in which I’ve included script.php file where I’ve kept the contact form sending script. I’ve included this page on the end of form. When I try to submit a blank contact form then I see that it goes to my script.php where a pop-up message appears as “FILL THE BLANK FIELDS”. By this it’s clear that I’ve placed the right path. But when I fill the form and click to submit then it shows message as “Oops page not found”. Why is it not working?
I’ve included file as:<?php include_once('script.php'); ?>
I just want to make my contact form work without using plugins.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to include external php file on wp?’ is closed to new replies.