[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - Combining Templates with Scripts

Combining Templates with Scripts

Scripting questions and ideas

Moderators: Eric, Tomas, robin, Michael

Combining Templates with Scripts

Postby blerner » Sun Nov 04, 2007 1:24 am

Hello:

I have created a template with several items in the template which ultimately need to be completed. For example, there would be a space to put the 'total fees'. There are about 10-15 such items. The script would run so that InputBox determines what each of the 10-15 items are.

I would like to know if there is a way to put the resulting variables from the script into the template. Can you help? Thanks.

Brian
blerner
New Arrival
 
Posts: 1
Joined: Sun Nov 04, 2007 1:15 am

Postby Tomas » Sun Nov 04, 2007 11:41 am

Something like this:

Code: Select all
AppendBody $msg $TheValueChosenInInputBox


The best way (I think) is to have the template as part of the script, done through AppendBody commands.

If template is in a standalone file, check the vacation message script coming with default installation.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am


Return to PocoScript Help and How-To

Who is online

Users browsing this forum: No registered users and 1 guest

cron