
|
[phorm] [Phorm:] Re: $PHORM_PARSPHP not working
- From: webbbs@xxxxxxxxx
- To: support@xxxxxxxxx
- Date: 25 Nov 2004 14:20:40 -0000
The following new message has been posted on Phorm Support Forum at
<http://www.phorm.com/support/>.
***************************************************************************
MESSAGE: (#4489) Re: $PHORM_PARSPHP not working
<http://www.phorm.com/support/?rev=4489>
AUTHOR: Holotech
DATE: November 25, 2004 at 9:20 a.m. EST
Reply To: (#4486) Re: $PHORM_PARSPHP not working
Author: Brian Clifton
Date: November 25, 2004 at 9:12 a.m. EST
> Am I right in saying this must be done in th config
> file - not the ack file?
> $enquiry is a form field that needs to be parsed
> through phorm, so I didn't think using it in the ack
> file would work.
If you have PHP parsing enabled, you can do it in the ack file. Just remember
to enclose all PHP code in <? ?>.
Specifically, your ack file would look something like:
[blah blah HTML blah blah]
<?php
if($enquiry == "Datasheet"){
print "<p>Here is you requested datasheet <a
href=http://www.bfgroup.co.uk/specialist-distribution/datasheets/pdf/$partno.PDF>$product</a></p>";
} else {
print "<p>We will be in contact shortly.</p>";
}
?>
[blah blah more HTML blah blah]
Or, you could do it like this:
<? if($enquiry == "Datasheet"){ ?>
<p>Here is you requested datasheet <a
href=http://www.bfgroup.co.uk/specialist-distribution/datasheets/pdf/{{partno}}.PDF>{{product}}</a></p>
<? } else { ?>
<p>We will be in contact shortly.</p>
<? } ?>
Or, you can do it in the config file, assign the result to a variable, and
include it in the ack file with {{}}
***************************************************************************
This is an automatically-generated notice. If you'd like to be removed from
the mailing list, please visit Phorm Support Forum at
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx If
you wish to respond to this message, please post your response directly to the
board. Thank you!
-------------------------------------------------
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:[phorm] [Phorm:] Re: $PHORM_PARSPHP not working [phorm] [Phorm:] Re: $PHORM_PARSPHP not working [phorm] [Phorm:] Re: $PHORM_PARSPHP not working [phorm] [Phorm:] Re: $PHORM_PARSPHP not working [phorm] [Phorm:] Re: $PHORM_PARSPHP not working [phorm] [Phorm:] Re: $PHORM_PARSPHP not working [phorm] [Phorm:] Re: $PHORM_PARSPHP not working
|

|

|
[ Home |
Signup |
Help |
Login |
Archives |
Lists
]
All trademarks and copyrights within the FreeLists archives are owned
by their respective owners. Everything else ©2008 Avenir Technologies, LLC.
|

|
|