php question…
-
don’t know if this correct place to ask this question.. why can only moderators post to “advanced” forum?? there should be a forum for php questions….
I don’t want to do a ‘mailto’ link for email in my blog.. in order to prevent the harvesting of my email address by spammers I never put my email address in my website and always do mail with a form.. I’m trying to do a form pg in my blog.. if I copy index.php (so I get same header, footer, sidebar.. and form in main area where posts normally are..) in same dir where index.php is, and call it mail.php and remove everything inside it except the functions for the header, footer, and sidebar, i.e., leave like this (for testing for now):
<?php get_header(); ?>
<div id=”content”>
test — form here…
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>I get this error:
Fatal error: Call to undefined function: get_header() in /home/francesb/public_html/home/mail.php on line 1
why do I get this error when this file is in same location as index.php…
thank you…
- The topic ‘php question…’ is closed to new replies.