First off, thank you for letting me use formmail.php. The site in question is a "fake" site created for a web class. I will be adding formmail.php to my other "real" sites (once I get it squared away) and will certianly give credit where credit is due with the provided link.
I am having a problem with my good/bad templates. I am a novice with php so go easy on me.
What was working/ what I need:
I am tying to display the good/bad info within the normal layout of my site. I added the php includes for the top and bottom layout of my site into the good/bad templates. It was displaying the good/bad info correctly within the normal site layout.
What I did:
I was trying to set up the fmbadhandler and must have goofed something up. I ditched fmbadhandler and associated steps (I hope) to try and start from scratch. But the problem remains.
Now, my includes are ignored and the good/bad info is displayed alone.
When I was first trying to get the includes working, I would get error messages that the included files could not be found. Once I corrected the path to the included files the problem was solved and the good/bad info displayed correctly within my site layout.
Since the includes stopped working, I change the path to the included files to a bogus path to see if there would be an error. Now there isn't even an error stating that the included files can't be found (as was the case at first). It seems as though the includes are being ignored/skipped somehow. I can alter the basic text in the good/bad templates and it will show up in the browser, so I know that formmail knows where the templates are. It's just the includes that are missing.
My form has:
<input type="hidden" name="bad_template" value="ERRORformmail.php" />
<input type="hidden" name="good_template" value="OKformmail.php" />
$TEMPLATEDIR = "formmailtemplates";
The includes are at the very top and bottom of the good/bad templates.
$TARGET_URLS = array();
at the very top is:
at the very bottom is:
Any help or advice would be great!
Thanks again for formail.php.
Link to form: