i wish to put a php script in a page on the wordpress blog. My server only supports a particularly script for emails through contact forms, and so i need in some way to place the script in touch page. I have tryied to place that script within the page.php file but without results.

Can anybody assist me to please?


Rather than using scripts you can't make a start, why don't you make use of a Worpresss contact page wordpress plugin rather? You will find excellent plug ins, such for example Contact Page 7 that get the job done perfectly and are really simple to use in your website.

Produce a file inside your theme known as 'contact_page.php' and set this code inside it:

Template Name: Contact Page

<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
//Your code here
<?php endwhile; endif; ?>
<?php get_footer(); ?>

Then produce a new page in wordpress known as "Contact" and hang its' template as Contact Page