I’ve just installed wordpress at the root of my site and created a custom theme, you can see it at http://www.danwellman.co.uk
I have a problem with the form attached to the ‘Contact’ tab near the top-right of the header – this is a jQuery plugin which makes a POST request to a PHP file to send an email to my hotmail.
before installing wordpress this was working perfectly, but since installing wordpress it no longer works. After completing the form and hitting send the index.php page is returned to the form.
What should happen is the form should send the data to my PHP file (sendMail.php) but it looks like the request to /sendMail.php is being rewritten to /index.php instead.
I tried deleting the .htaccess file from the root of my site as a test but it didn’t seem to make any difference.
Can anyone advise?
There are a couple of problems. First of all, the contact link’s
hrefattribute issendMail.php/. It should be/sendMail.php. Second of all, the following JavaScript needs to change from:to:
It actually has nothing to do with WordPress or the .htaccess file.