PDA

View Full Version : Using Server Side INI file with a multipage form



Clubbinaz
28-Mar-2008, 07:59 PM
How or Can I use the Image Verify function and check it's value using a INI file if I have a multi-page form. I currently installed the image verification on the final page of the multi-page form but my Formmail gets confused and trys to validate it from the first page.

Darren

russellr
28-Mar-2008, 10:27 PM
Hi,

This is a deficiency in the current INI file design.

The problem is that the INI file is processed on every page of a multi-page form. So, if you make a field required in your INI file, it's required on the submission of every page of the multi-page form.

And that's the problem you're hitting.

The workaround, until we implement a more targeted INI file design, is to use conditions instead of required to target the last page.

Since every page except the last uses "next_form", that's a good field to trigger the condition you want.

This code in the INI file should work for you:


conditions1 = ":@ @IF@ next_form @@ imgverify @ You must enter the image characters@"


What this says is: "if 'next_form' is set, do nothing, else, imgverify must be set".

Let me know how you go with this.

Clubbinaz
28-Mar-2008, 11:41 PM
worked like a charm. Any progress on my auto results page so I can get started with your module?

:)

Darren

russellr
28-Mar-2008, 11:44 PM
Hi,

I sent you an email regarding this yesterday, with a modified version of your template.

I'll send it again...