Hi,
Sorry for the delay, I thought I'd already answered this one (maybe in another thread?).
An INI file gets loaded on every page of a multi-page form. So, depending on what you're specifying in it, this is not useful.
(We'll be superseding INI files in a future version of FormMail, to avoid this problem.)
For example, if you specified "recipients" in an INI file, then FormMail would email you after every page submission. In general, not what you want.
Similarly for "fmcompute1", "fmcompute2", and so - they will get executed after every page submission.
Now, because of the logic you can implement, this isn't a major hurdle.
What you need is to provide an "if" statement around the logic that identifies when to execute.
For example,
would become:Code:total = price_1 + price_2;
to ensure that this calculation only happens after page 3.Code:if (page_number == 3) { total = price_1 + price_2; }
Then, on the pages of your multi-page form, you include a hidden field that identifies the page number. On page 1:
And on page 3:HTML Code:<input type="hidden" name="page_number" value="1" />
HTML Code:<input type="hidden" name="page_number" value="3" />
Bookmarks