Hi there - I'm rapidly running out of hair to pull, so please, pretty please, pretty please with chocolate on top, help.
First, I can't implement fmbadhandler.php - when I tried it I received the error "URL open failed: fopen(http://www.microsoft.com) [function.fopen]: failed to open stream: no suitable wrapper could be found
So, I've tried the sampleerrortemplate.htm (located in a templatedir) after adding the necessary statement to the form:
Code:
<input type="hidden" name="good_url" value="http://www.castlefarmbandb.co.uk/emailtemplates/emailthanks.shtml" />
<input type="hidden" name="bad_url" value="http://www.castlefarmbandb.co.uk/emailtemplates/sampleerrortemplate.html" />
and defining the templatedir in formmail.php
Code:
$TEMPLATEDIR = "http://www.castlefarmbandb.co.uk/emailtemplates";
The sampleerrortemplate.htm is displayed after a user error - but the error fields
Code:
<fmusererror>
<p>This is a list of items in error:</p>
<ul>
<fmerroritemlist />
</ul>
</fmusererror>
are not being populated when the page is displayed.
What am I missing here?
Thanks - Phil.
Bookmarks