Results 1 to 2 of 2

Thread: Sending some data from session, not from form, without hidden input fields

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    Default Sending some data from session, not from form, without hidden input fields

    Hi!

    Is it / how is it possible to send some data that are not from text input or generally input fields from the actual form?

    Say, I have in the session a value stored and I want to send this via FormMail included with the other filed from the form.

    My "problem" is, that I want to send a price value, that is actual at the moment of form submit, but I do not want to use a hidden input field for this, because, someone can change that value before sending the form.
    The price is / can be stored in the actual session.

    Ciao
    Billy

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

    Default Re: Sending some data from session, not from form, without hidden input fields

    Hi,

    If you're talking about a PHP session, then, yes, FormMail can interact with the session.

    You need to tell FormMail that you want it to have access to particular session variables:
    http://www.tectite.com/fmdoc/session_access.php

    You can then reference the session variables you named as though they are fields in the form.

    This means you can use them in "derive_fields", or include them in your email templates.

    If you don't use a template for your form results, the session variables will be automatically shown in the form results email (just like any other field).
    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. 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. Problem with new server sending mail
    By mstookey in forum FormMail Subscription Support
    Replies: 7
    Last Post: 25-Jun-2004, 01:27 AM
  3. Deriving fields from other fields
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-May-2004, 12:25 PM
  4. POST form data as well as email
    By zippy in forum FormMail Subscription Support
    Replies: 20
    Last Post: 24-Jan-2004, 04:29 PM
  5. not seeing form data
    By brownie in forum FormMail Subscription Support
    Replies: 6
    Last Post: 19-Jan-2004, 01:37 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
  •