[ic] passing a variable to mail_receipt

TheDateRace interchange-users@icdevgroup.org
Fri Jan 17 04:08:16 2003


I have the following code on receipt.html.  How is it possible that I can
get [value newuser] into mail_receipt?  I can't seem to get the variable to
pass.  I have tried [value newuser] and [cgi newuser].  We have a unique
setup and is hard to explain but our checkout must be setup like this.  We
are not using data sessions or userdb.
=================
[item-list]
[tmp]
[query sql="select count(*) from customer where username = '[cgi uname]'"
list=1]
[seti user][sql-code][/seti]
[if scratch user > 0]
[value name="newuser" set="[cgi uname]_[value mv_order_number]"]
[/if]
[if scratch user < 1]
[value name="newuser" set="[cgi uname]"]
[/sql]
[/if][/query]
[/tmp]
[/item-list]
=================

Regards,

Jim