2010-09-23, 22:29:01
I'm using per page components (http://get-simple.info/forum/viewtopic.php?id=214) to show the contact form on the contact page. Inside the component I have:
Which is producing this error:
What am I doing wrong? Thanks!
Code:
<form action="<?php get_page_url(); ?>" method="post" class="contactform" >
<?php set_contact_page(); ?>
<p><label>Name:</label><input type="text" class="text" name="contact[name]" /></p>
<p><label>Email:</label><input type="text" class="text" name="contact[email]" /></p>
<p><label>Message:</label><textarea class="text" name="contact[message]" ></textarea></p>
<div class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></div>
<p><input type="submit" class="submit" value="Send Email" id="contact-submit" name="contact-submit" /></p>
</form>
Which is producing this error:
Code:
Fatal error: Call to undefined function set_contact_page() in C:\localhost\sitename.local\theme\Default_Simple\functions.php(14) : eval()'d code on line 2
What am I doing wrong? Thanks!