How can I run php files on a wordpress site?

59 views
asked May 14, 2012 in General by SaraSX (2,770 points)
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
Thanks

3 Answers

0 like 0 dislike
answered May 14, 2012 by WebProX (12,200 points)
Hello Sara

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