Results 1 to 4 of 4

Thread: include(formmail.php);

  1. #1
    Join Date
    Dec 2008
    Location
    Davenport, Iowa USA
    Posts
    29

    Default include(formmail.php);

    What are the pitfalls, problems with, issues associated with or benefits of doing the following:

    On the html page:

    <form name="name" method="post" action="object.php"> ( instead of action="formail.php" )
    *
    * Form stuff
    *
    <input type="submit" value="submit" name="submit"/>
    </form>
    -
    -
    file name object.php
    <?php
    *
    *
    * My php code;
    *
    *
    incude(formmail.php);
    *
    *
    * More of my code;
    *
    *
    ?>

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: include(formmail.php);

    Hi,

    The main difficulty is that your code must not damage the logic of FormMail.

    However, FormMail has a Hook System - you can hook your code into the operation of FormMail at various places.

    If you know how to read & write PHP, you won't have any trouble working with the Hook System.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2008
    Location
    Davenport, Iowa USA
    Posts
    29

    Default Re: include(formmail.php);

    Russell:

    Ok. A related question. As you indicated in your previous answer, my code can't damage FORMMAIL. I've got it working as previously described and it works perfectly. But I now have situation which calls for the following: (And needless to say, it's not working or I wouldn't be here!) I'm aware of the Hook System but what I'm doing in "my code" does not lend itself to using the Hook System. Any suggestions? Thanks in advance. Steve Darling

    <form name="name" method="post" action="object.php"> ( instead of action="formail.php" )
    *
    * Form stuff
    *
    <input type="submit" value="submit" name="submit"/>
    </form>


    file name object.php
    <?php
    *
    *
    * My php code;
    *
    *
    require_once(formmail.php);
    *
    *
    * More of my code;
    *
    *
    require_once(formmail.php);
    *
    *
    * More of my code;
    *
    *
    ?>

    I'm doing the following to get data to FORMMAIL just before the require_once statements:

    $_POST['var1'] = "abc";
    $_POST['var2'] = "def";
    $_POST['mail_options'] = "PlainTemplate=scoring_prepost_plain.txt,TemplateMissing=,FromAddr=webmaster@jdclassic.org";
    etc.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: include(formmail.php);

    Hi,

    That's not quite how to structure things with FormMail Hook System.

    But, there's not much wrong with it (noting that the required_once only happens once, and should only happen once).

    I'm not sure what's "not working", so it's a bit hard to advise at this stage.

    We do have a support service: http://www.tectite.com/vbforums/showthread.php?t=1567

    It sounds like you should buy some support.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. where are the include files
    By michellediamond in forum Community Support
    Replies: 1
    Last Post: 10-May-2012, 08:08 PM
  2. Include Web Page URL in the Submission
    By cglenn in forum Community Support
    Replies: 2
    Last Post: 24-May-2011, 10:43 PM
  3. Include fields into the e-mail body
    By d-day in forum Features Questions
    Replies: 2
    Last Post: 25-Jun-2008, 09:14 AM
  4. Replies: 0
    Last Post: 19-Nov-2007, 10:32 PM
  5. csv file to include time
    By lionel in forum Community Support
    Replies: 1
    Last Post: 07-Apr-2006, 08:23 AM

Tags for this Thread

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
  •