Results 1 to 2 of 2

Thread: "required" array from ini file and form

  1. #1
    Join Date
    Apr 2007
    Posts
    3

    Default "required" array from ini file and form

    Hi Russel,


    How about a modification to the "required" array such that the definitions can come from both the ini file and the form? (Obviously the ini should take precedence if a field is listed in both places.) That way a security related field like imgverify could be required on all forms through the ini while less critical fields are required by the form.

    I can work around this with multiple renamed copies of FormMail.php but it would be cleaner the other way come upgrade time.



    Kevin

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

    Default Re: "required" array from ini file and form

    Hi,

    "required" is not an array - it's a string so you can put it in the INI file.

    The INI file overrides any values you also place in the form.

    A future version of FormMail will support a different INI file for each form you have.

    Whereas, at the moment, if you need a different INI file for multiple forms, you also need multiple copies of FormMail.
    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. Email contains no "mesg"
    By xuric in forum FormMail Subscription Support
    Replies: 1
    Last Post: 19-Apr-2004, 08:17 PM
  2. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 09:04 AM
  3. Directing Form to File - Need Help
    By rongreen in forum FormMail Subscription Support
    Replies: 13
    Last Post: 02-Mar-2004, 03:53 AM
  4. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 09:04 PM
  5. Help trying to set up a form to email and send info to file
    By rridsdale in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-Jan-2004, 02:38 AM

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
  •