Results 1 to 4 of 4

Thread: Date in hidden field and results email

  1. #1
    Join Date
    Feb 2006
    Posts
    20

    Default Date in hidden field and results email

    Hi,

    In the last page of my form, I inserted this tage to create a hidden date:
    Code:
    
    <input type="hidden" name="derive_fields" value="Date=%rfcdate%,Zone=%tzname%" />
    
    Then, in the html for the output email, I put this:
    Code:
    
    <p>$rfcdate $tzname</p>
    
    It does not work, and the result is the string denoting an empty field value, but I cannot understand why.

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

    Default Re: Date in hidden field and results email

    Hi,

    That's strange. I guess your server has PHP version > 4.04. Check that.

    I'm also guessing that other fields expand OK in the HTML email. Correct?

    So, the obvious thing would be that you've put this field outside the <form></form> tags. Seems unlikely, but it does happen.

    Check the above. If still not working, please post or PM the URL for your form.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

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

    Default Re: Date in hidden field and results email

    Hi,

    Ooops...should have looked more closely.

    You want this in your HTML template:
    HTML Code:
    <p>$Date $Zone</p>
    In other words, the names of the fields you're deriving, not what they are derived from.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Feb 2006
    Posts
    20

    Default Re: Date in hidden field and results email

    Yes, that works, and I should have looked more closely as well...

    Thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 08:31 PM
  2. smae setup different results
    By tray in forum FormMail Subscription Support
    Replies: 7
    Last Post: 17-Aug-2004, 08:24 PM
  3. Show form results to user
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 02-Aug-2004, 04:59 AM
  4. Date/Timestamp
    By projpeople in forum FormMail Subscription Support
    Replies: 6
    Last Post: 21-May-2004, 03:51 AM
  5. not so intersting results
    By expisp in forum FormMail Subscription Support
    Replies: 4
    Last Post: 10-Feb-2004, 07:15 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
  •