Hi,
Yes, it could be a bug....
I'll take a look and post back later.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
I am not sure if this is a bug but this seems like the right place to start.
I have notice that if I get a bad image match, even when I do it intentionally I get the following message.
If I enter the verification correctly it accepts and does all the great things it is suppose to do. Receipt message, html mail, etc.HTML Code:Here is the full error message:Image verification string missing. This is probably a fault on the server.
I believe the only problem I am having is the message. It is not a server problem it is an error on the input. If it is a user error should it not say so rather then say there is a server error?
I tried to find where the message came from so I could change it but I have not been able to locate it.
Hi,
Yes, it could be a bug....
I'll take a look and post back later.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hi,
I just checked the code in version 7.10 of FormMail.
The only time you'll get this error:
is when the session does not contain the image verification string from the verifyimg.php script. So, it is a fault on the server.Image verification string missing. This is probably a fault on the server.
If it's a user entry problem, then you get another message.
However, I should probably check out what's going on with your form since I know you're an experienced FormMail user, and the test you've done is pretty clear.
Please post or email your form URL and the URLs to formmail.php and verifyimg.php. Can you also please tell me the name of your session ($SESSION_NAME) or whether you've just left it as empty (default)?
Also, confirm that you have the same $SESSION_NAME setting in both formmail.php and verifyimg.php.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
The email has been sent.
$SESSION_NAME is default and I checked to confirm it was the same on both.
Hi,
I just tried your feedback form and entered the wrong value for the image.
As expected I got this response:
This was with Firefox 1.5.0.6 with cookies enabled.Form Error
Please correct the errors to submit. You can use your back arrow to return to the form. The previous information submited should be there. Just fill in the missing items and submit again.
Here is the full error message:Your entry did not match the image
I then tried with IE and cookies disabled, and saw the problem you've described.
Then again with IE and cookies enabled, and the processing was correct (like the Firefox test above).
However, with cookies disabled I cannot submit the form even if I correctly enter the image string.
If you check, I expect you'll find cookies are blocked in your browser.
This means you need to follow the instructions for working around blocked cookies. This is for autoresponding, but the same principles apply for the form submission image verification feature:
http://www.tectite.com/fmhowto/autorespond.php#cookies
The sample image verification script includes a PHP version that works around blocked cookies:
http://www.tectite.com/vbforums/showthread.php?t=1181
If you don't have cookies disabled and still get this problem, I think it indicates a very interesting problem on your server or with your browser.
Just to re-iterate:
- with cookies disabled, I get the message you reported for a valid or invalid image verification input. This is expected.
- with cookies enabled, I get the correct message for an invalid image verification input and a successful form submission for a valid image verification input
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
The switch to PHP solved the problem with the image. Now it excepts a good one and gives a mismatch message on a wrong one.
Note: I use Firefox all the time except to check to see how something looks with IE. I was using Firefox when I experience the server problem message. Possibly something with cookies on Firefox but it is ok now. IE and Firefox work fine now.
New problem: Since switching to PHP when using Back to return to the forum it is now blank. No data is on the form so it all needs to be entered again. That part was working fine previously. The PHP file is now feedback.php in the same location if you want to look it over.
Item #3 Does not seem to currently apply with the new JavaScript. I could not locate the following line in the form. This is the new version for Firefox.
PHP Code:document.vimg.src = "verifyimg.php";
Hi,
Going back with the browser back button is unreliable. Sometimes it works, sometimes it doesn't.
That's why you need to use FMBadHandler for proper error handling.
The JS you quoted is wrong (old IE-only code). The current download for "sampleimgverify.php" has the correct code.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks