Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

How can I run php files on a wordpress site?

May 14, 2012 by SaraSX
Hello all
I need to execute a php mailing script from an html form. I'm having trouble doing this. I am not sure how to point the form to the php file. I have put the form's code in a page already and uploaded the php file to several different directories via ftp.  Can anyone please help me

3 Answers

0 votes
May 14, 2012 by WebProX
Hello Sara

Try the plugins Contact Form 7 Free Offering and Gravity Forms Paid Offering. This could be a solution for your problem
0 votes
May 14, 2012 by TopNet
you could include the php file in the theme and load in functions.php, then call a function passing in the details
0 votes
May 14, 2012 by WebGuru
I would suggest the contact form feature in JetPack by Automattic. You can send mail via form and it's saved in the database.