Use a plug-in called PHP Execution but make sure you save the page in code view otherwise it is likely to be deleted when you publish.
i am calling a php file from within a wordpress page that is a form and uses javascript , i have added the javascript source to the wordpress header but the form doesnt work , yet if i call the php file from a sidebar wideget the form works?
any ideas why it wont work from a wordpress page?
any help/ideas would be great
cheers
Use a plug-in called PHP Execution but make sure you save the page in code view otherwise it is likely to be deleted when you publish.
One thing to do is to create your own page template and place your php code in that.
To create a page template copy your page.php to formpage.php, at the top of your new template replace the original page.php definition with your own, like this:
Add your php code to this new template and use the template when you write the page.PHP Code:<?php
/*
Template Name: FormPage
*/
?>
The trouble with the rat race is that even if you win you're still a rat.
Time passes. Listen. Time passes. Dylan Thomas
Ebay Alerts to your inbox
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks