[phorm] Problems with Variable Substitution

I can not get the user submitted information to show up on the acknowledgement page.

Here is my config file:

<?php
# In this file, text coming after a # character or // characters is ignored.
# You can delete any such text if you wish.

# This is the global configuration file. It's read every time Phorm runs.
# If the form calling Phorm has a local (form-specific) configuration file,
# settings in it will override settings here.

  $PHORM_ALERTTO = "kloomis@xxxxxxxxxxxxx";
  $PHORM_TO = "kloomis@xxxxxxxxxxxxx";
  $PHORM_SUBJECT = "Test Form from AlanCaron.com";
  $PHORM_RCONFIG = false;
  $PHORM_REFERER = "|alancaron.com|www.alancaron.com|";
  $PHORM_LOG = "samplRqstrs";
  $PHORM_LOGVAR = "first_name last_name title company email phone street city state zip QSTRAT_Enterprise QSTRAT_SmallBusiness QSTRAT_ClimatePLUS QBoard_BoardEffectiveness QLEAD_Leadership360";
  $PHORM_REQ = "first_name last_name title company email phone street city state zip";
  $PHORM_ALERTFM = "phorm@xxxxxxxxxxxxx";
  $PHORM_RESUBJ = "Here are the links to your requested samples from Alan Caron";
  $PHORM_RESFROM = "samples@xxxxxxxxxxxxx";
  $PHORM_RESPOND = "autoResponse";
  $PHORM_RESRPLY = "samples@xxxxxxxxxxxxx";
  $PHORM_ACK = "ackSmplRqst.php";
  $PHORM_PARSPHP = "1";
?>

=======================

I am using phormation to set the values in the config file, and that sets $PHORM_PARSPHP to "1". I manually edited that to "true" but that had no effect.


=======================

This what I use in the acknowledgement page:

<BR><BR>

Thank you {{first_name}} {{last_name}}!<BR>
<BR>
=======================

These are the corresponding field tags from the form page:

<input NAME="first_name" TABINDEX="1" ID="first_name" TYPE="text" SIZE="20" MAXLENGTH="40">

<input NAME="last_name" TABINDEX="2" ID="last_name" TYPE="text" SIZE="20" MAXLENGTH="40">

=======================

To see the entire form page, look here:

http://alancaron.com/rqtsSamplesForm.htm

To see the entire acknowledgement page, look here:

http://alancaron.com//phorm/ackSmplRqst.php

=======================


The examples included with phorm use "html" so I tried that as well as the "php" that is indicated in the documentation. There is no effect to changing the file extension.

The user submitted information comes through just fine in the email sent to me. Here is the body of the email I receive:

first_name: Ken first id
QSTRAT_Enterprise: checkbox
QSTRAT_SmallBusiness: checkbox
QSTRAT_ClimatePLUS: checkbox
last_name: Loomis
title: boss
company: mine
Email: kloomis@xxxxxxxxxxxx
phone: phone
street: address
QLEAD_Leadership360: checkbox
city: city
state: state
zip: zip
submit: Submit
QBoard_BoardEffectiveness: checkbox
=======================

I do not, however, use a template for that email, but will want to when I get this all working.

TIA for any help.

Ken Loomis



Ken Loomis
Consultant
Windows, Macintosh, Internet, etc.
Helping to make your technology
experience more pleasant & profitable ;-)
619-275-6919 / Cell 619-889-7834
KLoomis@xxxxxxxxxxxxx




------------------------------------------------- You are receiving this message because you are subscribed to the Phorm mailing list. To send messages to the mailing list, simply send email to phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx with 'unsubscribe' in the SUBJECT field.

Other related posts: