I am experiencing a server issue (I think).
Instead of being shown my error.htm with the errors, I am being re-directed to a 404 error page.
Previous to some changes that I have made (listed below) I experienced the following
(may not be relevant anymore due to my changes but thought I would include info for you if it helps):
In the past I had similar results by being shown a
403 Forbidden page with this message:
I have made some changes since then so I don't see the above message any more.
You don't have permission to access /fm/fmbadhandler.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The changes I have made were:
changing the index page for my site to a Wordpress blog.
I revised the $TEMPLATEDIR and $TARGET_URLS values on the php files.
The page that you will see now when submitting the form with errors is my blog as this is set up as the index page for my site.
It will then re-direct to a 404 error page.
This is the 404 error page url that I get in the browser address bar:
(Please excuse the length on all urls that I paste in this post.
I have configured define("PUT_DATA_IN_URL",true); to false as the error results were showing in the urls.)
This is the url displayed on the 404 error page that could not be found (results from badhandler):
I also tried experimenting with $SESSION_NAME =""
by changing it to: $SESSION_NAME = "formerror01"; in formail.php,verifyimg.php and fmbadhandler.php
I then get this result as the url displayed on the 404 error page that could not be found:
I have left the $SESSION_NAME value in each of the php files as described above for the time being in case it is necessary. If not then maybe it should be returned to the default value?
You mentioned during a short conversation on the phone to me that there are some people that can have question after question that can go on for a few weeks.
I could be one of those people but I am hoping that I will be able to resolve them on my own once the initial problem is sorted out.
I do have some additional questions for you which I will list here just in case you are able to answer them for me quickly. If not then
maybe I can address them with a future support subscription.
Because I will be servicing 2 different email addresses with forms I will be placing two different versions of formmail.php - is this likely to cause problems with more than one version in the same folder?
I will also need to run two different versions of badhandler. Can I rename each version and run both scripts from the same folder (main directory - public_html). ie: badhandler1.php & badhandler2.php
When I use badhandler - if the user's input into the imgverify field doesn't match the characters in the vimg: will the default error message appear to the user on my bad_template (error.htm)?
If so, do I need to insert a 'special' html error tag into my error.htm for badhandler to insert the error message?
If I use $REQUIRE_CAPTCHA = "Please enter the image characters"; instead of <input type="hidden" name="required" value="imgverify:"Please enter the image characters": where will the message be placed on my error.htm if I am using the tags: <fmerroritem1 /> <fmerroritem2 /> etc...?
Thanks in advance.
I will upload the following files:
formail.php (mamog.php), fmbadhandler.php, and I can email phpinfo.pdf (host info) as the file size is 142 kb (zipped) 151 kb (pdf)
The contact form is found at: http://www.makemoneygo.com/contact.htm
and is located at: public_html folder/makemoneygo.com
fmbadhandler.php is located at: public_html folder/makemoneygo.com
formail.php (re-named as: mamog.php) is located at: public_html/makemoneygo.com/fm
error.htm (re-named as: Go_back_and_check_your_form.htm) is located at:
The domain (makemoneygo.com) is listed as an 'addon domain' in CPanel.