1. Home
  2. Knowledge Base
  3. GMS
  4. Is there any way to pass the value of an MML variable in a <form> output?

Is there any way to pass the value of an MML variable in a <form> output?

Question

Is there any way to pass the value of MML variables to Cold Fusion pages in a <form> output?

Answer

It is possible to use an MML variable with in an input tag by something like:

<input type="hidden" name="browser" value="<# print(var1); #>">

Once this is passed through the NTMail web server you will have a variable "browser" which contains the value of the "var1" variable.

As an example:

<#
var1 = "IE6";
#>

<input type="hidden" name="browser" value="<# print(var1); #>">

If you now view the source of the page through the web browser you will see:

<input type="hidden" name="browser" value="IE6">


Keywords:MML, passing variables, form

Was this article helpful?

Related Articles

Contents

Need Support?

Can't find the answer you're looking for?
Contact Support