I've been investigating and it seems that the incfunctions.asp file is being included twice. The first time sets the default value for the "htmlemails" parameter, but then the database is called to pull the values defined in admin and the htmlemails parameter is set to TRUE. Then the incfunctions.asp file is included again and the htmlemails parameter is set to its default value of FALSE and then the function is called to pull the values from the database, but as we've already got them it's not executed and the value remains at false.
The simple solution is to just included the files like incfunctions.asp one time, but the thing is I can't see where it is included the first time. In thanks.asp it's just before the incthanks.asp include...
<!--#include file="vsadmin/inc/languagefile.asp"-->
<!--#include file="vsadmin/includes.asp"-->
<!--#include file="vsadmin/inc/incfunctions.asp"-->
<!--#include file="vsadmin/inc/incthanks.asp"-->
But at the top of the file before the opening <html> tag you have...
<!--#include file="vsadmin/db_conn_open.asp"-->
<!--#include file="vsadmin/inc/metainfo.asp"-->
...and by rights that should error. Then comes the sidebar include which displays the mini css and which again should error if incfunctions were not included.
Anyway, for now it's working because I've added a line to incfunctions near the top...
alreadygotadmin=FALSE
...which resets the system so the database values are pulled a second time. But do you know anything about what is going on here as it all seems a bit strange. Also, the usual way around this would be to include all the include files in the same place, before the <HTML> tag like this...
<!--#include file="vsadmin/db_conn_open.asp"-->
<!--#include file="vsadmin/inc/languagefile.asp"-->
<!--#include file="vsadmin/includes.asp"-->
<!--#include file="vsadmin/inc/incfunctions.asp"-->
<!--#include file="vsadmin/inc/metainfo.asp"-->
Would that be a possibility?
Vince
Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater