Results 1 to 7 of 7

Thread: HTML Form

  1. #1
    Join Date
    Jan 2011
    Posts
    15

    Default HTML Form

    Hi guys

    I've got everything working perfectly with my form sending a nice HTML email to my inbox. My dilemma right now is that I'm basically trying to send HTML via one of the hidden values. I've got it sending fine (thanks Russell from earlier today) and inserting it where I want in the HTML template using $CartData. However it's just treating it as text, and not source code. Is there any way I can tell it to actually use it as code and not treat it as text?

    Thanks!

  2. #2
    Join Date
    Jan 2011
    Posts
    15

    Default Re: HTML Form

    This isn't possible to perform? Or maybe I didn't explain very clearly.

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

    Default Re: HTML Form

    Hi,

    Any field values are expanded as HTML "entities" when placed in a template.

    This means you can't add HTML code via a hidden field.

    This is an important security feature.

    What you can do is use our Advanced Templates feature to enable or disable sections of HTML in a template. This avoids any security problems.

    However, this is a feature of our non-free Computation Module (current price is US$245).
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Jan 2011
    Posts
    15

    Default Re: HTML Form

    Quote Originally Posted by russellr View Post
    Hi,

    Any field values are expanded as HTML "entities" when placed in a template.

    This means you can't add HTML code via a hidden field.

    This is an important security feature.

    What you can do is use our Advanced Templates feature to enable or disable sections of HTML in a template. This avoids any security problems.

    However, this is a feature of our non-free Computation Module (current price is US$245).
    Hi Russell,

    This is a feature that I'm going to need, so it looks like I'll need to purchase the Module. Just a few quick questions:

    - Is it a one time fee or is that the annual license fee?
    - Is it easy enough to do what I'm trying to do using the module? All I need to do here is to switch off the html entities on that field.

    Thanks Russell.

    P.S. I'm in Brisbane - is the price $245USD or $264AUD as listed on the web? Many thanks.

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

    Default Re: HTML Form

    Hi,

    Quote Originally Posted by Ryn View Post
    This is a feature that I'm going to need, so it looks like I'll need to purchase the Module. Just a few quick questions:

    - Is it a one time fee or is that the annual license fee?
    It's a one-time fee. You get the complete source code and can use it on multiple sites you own.

    - Is it easy enough to do what I'm trying to do using the module? All I need to do here is to switch off the html entities on that field.
    It's easy to do and we'll show you how.

    Here's a quick example:
    HTML Code:
    <if "$SendHTML">
    <p>
    This is any HTML stuff you want to include in the output of the template.
    </p>
    <div>
    There is no enforced size limit or restrictions on the <a href="javascript:alert('HTML is cool');">HTML</a> you can include.
    </div>
    </if>
    P.S. I'm in Brisbane - is the price $245USD or $264AUD as listed on the web? Many thanks.
    As an Aussie, your price is AUD$264.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    Dec 2013
    Posts
    2

    Default Re: HTML Form

    Hi,
    I am a little unclear about your answer to the questions above.
    I have Formmail 8.36 and the encoder running fine on my server, but I want to have HTML output of my form results. Above you seem to imply that with the Computation Module, I could get my output in HTML. But in answers to other questions, you imply this is impossible ("the decoder doesn't know html"). What is the answer?

    What I am currently doing - I have HTML in my plain text template, When it hits the decoder, I use "Save As" and name an html file, then I can open it in a browser and print an html formatted output. But is there a better way? Maybe using the Computation Module?

    Thanks,
    Jim Allen

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

    Default Re: HTML Form

    Hi,

    The question in this thread is about the HTML form sending through HTML code into the template.

    That generally can't be done for security reasons. However, later versions of FormMail have added support for a limited amount of HTML that can be passed through (using the TEXT_SUBS feature).

    The original poster wanted to choose bits of HTML to pass through based on answers in the form. At the time, this could not be done and the solution was Advanced Templates - these allow the template to make a decision about which HTML code is output from the template.

    All this is completely separate to the issue of whether FormMailDecoder can deal with HTML directly. It can't.

    And the way you use to display HTML after decryption is currently the only way to achieve what I think you want.
    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. Sample HTML Form Using FormMail
    By russellr in forum FormMail
    Replies: 1
    Last Post: 21-Mar-2007, 06:49 AM
  2. 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
  3. Html form needs image verification for submit
    By craigatkin in forum FormMail Subscription Support
    Replies: 2
    Last Post: 18-Mar-2005, 10:13 PM
  4. Variables in HTML form - assigning input type
    By tvulucy in forum FormMail Subscription Support
    Replies: 4
    Last Post: 28-Oct-2004, 08:03 PM
  5. Submitted form output onto HTML page?
    By LKimber in forum FormMail Subscription Support
    Replies: 2
    Last Post: 13-Apr-2004, 10:39 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
  •