Yes, multi-page forms work with autoresponding.
In short, I would be much obliged if you could help me with these two problems:
- If I want to derive the email field, where should I do so? (i.e. on which page should I put the derive_fields statement: on the page containing the fields from which email is derived, or on the last page?)
- Is it possible to use the combination autoresponder/multiforms?
Here's some info from the HOW TO guide.
It's probably not as clear as it could be, but instead of trying to derive "email", you use the template mechanism.
All other pages of a multi-page form sequence are FormMail templates. These are regular HTML documents with forms that submit to formmail.php
, but you can also substitute previous field values (i.e. values submitted from previous pages) by using the $field
Yes, the email address and the autoresponding fields need to be on the last page.
But, you can accept the email address from the user on the first page and call the field "emailaddr" (or whatever) and then on the last page you do this:
The multi-page sample does exactly this to transmit the name and email address from the first page to the final last page submission.
<input type="hidden" name="realname" value="$name" />
<input type="hidden" name="email" value="$emailaddr" />