+ Reply to Thread
Results 1 to 3 of 3

Thread: Multi-page Forms and $MULTIFORMDIR or $MULTIFORMURL

  1. #1
    Join Date
    May 2005
    Posts
    4

    Default Multi-page Forms and $MULTIFORMDIR or $MULTIFORMURL

    Russell,

    I've searched extensively throughout the forums, looking for a solution to this, but after 3 hours, I have not been able to find one. I'm not one to post unless I absolutely can not find a solution.

    Here is the situation:

    1. I have downloaded and installed FormMail with no problems.
    2. I have downloaded and installed FMBadHandler with no problems.
    3. I ran all the initial tests to make sure it works, no problems.
    4. I created a sample one page form and uploaded it, no problems.
    5. I run the sample one page form, no problems.
    6. I read the Multi-Page form HOW-TO, no problems.
    7. I go to change the FormMail file setting, $MULTIFORMDIR and we have a problem. There is no $MULTIFORMDIR in the formmail.php file. I downloaded the file tonight, so I have the most up to date file. I also checked FMBadHandler and again there is no $MULTIFORMDIR anywhere in the file.

    I had previously put the directory for $TEMPLATEDIR when I was doing the HTML tutorial, which is listed in the formmail.php file as:

    $TEMPLATEDIR = "/home/EDITEDOUT/public_html/fmtemplates/";
    So, I skipped that step.

    When I try to run the multitest.htm files, I get the multierror.htm page that I had created and placed in my fmtemplates folder.

    So, I removed the coding that referenced that page.

    I then get the error that
    The form has an internal error no actions or recipients were specified
    .

    Please keep in mind that the error is on the first multi-page after I click on Next. The HOW TO says that:
    (You can provide recipients on each page, but then FormMail will send interim results for each page submitted. This is probably not what you want.)
    Here is the contents of the multitest.htm file (with my domain name edited):

    <html>
    <!--
    This is the first page in a sample multi-page form
    sequence (from www.tectite.com).
    Use this to help understand how multi-page forms work.
    You can find a how-to guide for multi-page forms
    at http://www.tectite.com/guides.php
    To use multi-page form sequences, you need version
    7.00 or later of FormMail.
    -->
    <head>
    <title>Multi-Page Form Sample - Page 1</title>
    </head>
    <body>
    <p>This is page one of a sample multi-page form.</p>
    <form name="MultiSample" method="post" action="formmail.php">

    <!-- ACTION: Put the full URL to this form in the value
    of the field called "this_form" -->
    <input type="hidden" name="this_form" value="http://www.EDITEDDOMAINOUT.com/multitest.htm" />

    <!-- Put first form must have the field value "multi_start"
    set to "1". All other forms in the sequence must
    *not* specify "multi_start" -->
    <input type="hidden" name="multi_start" value="1" />

    <!-- ACTION: Put the name of the second form in the
    form sequence in a the field called "next_form" -->
    <input type="hidden" name="next_form" value="multitest2.htm" />

    <!-- ACTION: For good error handling, use bad_template
    and put the file into your $TEMPLATEDIR or
    $TEMPLATEURL location. -->
    <input type="hidden" name="bad_template" value="multierror.htm" />

    <!-- ACTION: Comment or remove the bad_url field if you
    have not installed and configured FMBadHandler.
    Error handling works best with FMBadHandler. -->
    <input type="hidden" name="bad_url" value="fmbadhandler.php" />

    (*REMOVED FORM FIELDS*)

    <td colspan="2"><input type="submit" name="submit" value="Next >" /></td>
    </tr>
    </table>
    <input type="hidden" name="required" value="name:Your name,emailaddr:Your email address" />
    <input type="hidden" name="conditions1" value=":@
    @TEST@qty#>0@Please enter a quantity more than zero!@:
    " />
    </form>
    </body>
    </html>
    Here is the layout of the files:
    • ROOT DIRECTORY
    • formmail.php
    • fmbadhandler.php
    • multitest.htm
    • fmtemplates (folder)
      • multierror.htm
      • multitest2.htm
      • multitest3.htm
    I hope I provided enough information for you to possibly be able to help me.

  2. #2
    Join Date
    May 2005
    Posts
    4

    Default Re: Multi-page Forms and $MULTIFORMDIR or $MULTIFORMURL

    As a follow up, here is one of the many Alerts I received via email.

    Subject:FormMail script error [M17]
    The following error occurred in FormMail [M18]:

    no_recipients

    **********
    Error=The form has an internal error - no actions or recipients were specified. [M91]
    multi_start: '1'

    next_form: 'multitest2.htm'

    name: 'Damion'

    emailaddr: '*EDITED EMAIL OUT*'

    product: 'widget'

    qty: '34'

    submit: 'Next >'

  3. #3
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: Multi-page Forms and $MULTIFORMDIR or $MULTIFORMURL

    Hi,

    Multi page form support requires version 7.00 or later.

    Version 7.00 is only currently available via the Upgrade Wizard: http://www.tectite.com/wizards/fmupg.php

    So, upgrade to that and you should be fine from there.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. multi-dimensional arrays in fields, how can I template that correct
    By pauloportu in forum FormMail Subscription Support
    Replies: 8
    Last Post: 27-Oct-2005, 07:47 AM
  2. Multipage forms, going back and subsequently losing data!
    By Martinjgriffiths in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Jul-2005, 10:01 PM
  3. Multi-forms and certain conditions
    By Chrisanna in forum FormMail Subscription Support
    Replies: 1
    Last Post: 22-May-2005, 09:32 PM
  4. Sample Multi-Page Form
    By russellr in forum FormMail
    Replies: 0
    Last Post: 18-Apr-2005, 04:18 AM
  5. Attaching Files from forms
    By Chek in forum FormMail Subscription Support
    Replies: 2
    Last Post: 14-Dec-2004, 11:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts