I tried the {{id}} on the thankyou.html and it didn't pass it. As for the
cgi, I added a line:
# encode the billing info and pass it to the next form
$HTML{BILLING_INFO} .= "<input type=hidden name=\"p_cc_num\" value=\"" .
encode($cc_num) . "\">\n";
$HTML{BILLING_INFO} .= "<input type=hidden name=\"p_cc_type\" value=\""
. encode($cc_type) . "\">\n";
$HTML{BILLING_INFO} .= "<input type=hidden name=\"p_cc_exp_mon\"
value=\"" . encode($cc_exp_mon) . "\">\n";
$HTML{BILLING_INFO} .= "<input type=hidden name=\"p_cc_exp_yr\"
value=\"" . encode($cc_exp_yr) . "\">\n";
$HTML{BILLING_INFO} .= "<input type=hidden name=\"p_cc_name\" value=\"" .
encode($cc_name) . "\">\n"; <- Thats what I added *******
if ($REG_SYSTEM{allow_auto_renew}) {
$HTML{BILLING_INFO} .= "<input type=hidden name=\"auto_renew\" value=\"" .
encode($in{auto_renew}) . "\">\n";
}
If you look above, you will see the note that I added, and when I ran it I
got a Internal Server Error..
Mike Allen, 4CheapDomains.Net
[EMAIL PROTECTED]
http://www.4CheapDomains.Net
(812) 275-8425 - Office
(815) 364-1278 - Fax
----- Original Message -----
From: "Charles Daminato" <[EMAIL PROTECTED]>
To: "Dev-List" <[EMAIL PROTECTED]>
Sent: Sunday, December 09, 2001 10:01 PM
Subject: Re: reg_system.cgi
> Unfortunately I'm not much of a coder myself :( You might want to change
> your "input name" in your order.html to p_cc_name
>
> Also, look at the algorithm that passes values to message.txt and make
> sure p_cc_name is being passed to that function
>
> AFAIK, {{id}} already gets passed to thankyou.html
>
> Charles Daminato
> TUCOWS Product Manager
> [EMAIL PROTECTED]
>
> On Sun, 9 Dec 2001, Dev-List wrote:
>
> > I put this in the order.html:
> > <TR>
> > <TD align=right bgcolor="#93D5BE"><B>Name As It Appears on
Card:</B></TD>
> > <TD align=left><input name="cc_name" size=20
value="{{p_cc_name}}"></TD>
> > <TD align=left>
> >
> > </TD>
> > </TR>
> >
> >
> > I put this in the verify.html (Works Great):
> >
> > <b>Name on Credit Card:</b>{{cc_name}}
> >
> > And I put this in the message.txt (This doesn't work...):
> >
> >
> > Name On Card: {{p_cc_name}}/{{cc_name}}
> >
> >
> > Note: The only reason I put both {{p_cc_name}} and {{cc_name}} Was to
make
> > sure I wasn't using the wrong variable. Hoping ONE would show up....!
> >
> >
> > I also need to pass the order # {{id}} to the thankyou.html because I am
> > using a program like CJ.COM that I pay commissions on every sale and if
I
> > pass that order # along it will make it easier to get a credit on a sale
> > that doesn't go through (IE:Credit Card rejected etc.)
> >
> >
> > But I just don't have enough know-how yet with CGI to make the right
> > changes.... Does anyone know of any classes like, "CGI FOR DUMMYS?"
> >
> > OO Ya, Thanks for the TYPE thingy....
> >
> > Mike Allen, 4CheapDomains.Net
> > [EMAIL PROTECTED]
> > http://www.4CheapDomains.Net
> > (812) 275-8425 - Office
> > (815) 364-1278 - Fax
> >
> >
> > ----- Original Message -----
> > From: "Charles Daminato" <[EMAIL PROTECTED]>
> > To: "Dev-List" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Sunday, December 09, 2001 9:00 PM
> > Subject: Re: reg_system.cgi
> >
> >
> > > You have to make sure that any variables you're introducing to the
system
> > > are carried throughout the logic process, including placing the proper
> > > place holders (in {{..}}) in the templates and respective files (like
> > > message.txt)
> > >
> > > Without knowing more about what kind of changes you've made, it'll be
hard
> > > to give further advice.
> > >
> > > BTW - your reply-to field has a typo (says dev-lisy instead of
dev-list)
> > >
> > > Charles Daminato
> > > TUCOWS Product Manager
> > > [EMAIL PROTECTED]
> > >
> > > On Sun, 9 Dec 2001, Dev-List wrote:
> > >
> > > > Hi All...
> > > >
> > > > I have made a modification to my order.html to ask for the name on
> > > > the credit card. That information (cc_name) passes through find to
> > > > the verify.html page, however it doesn't show up on the message.txt
> > > > file.... I have made various changes in the .Cgi but I just don't
know
> > > > enough CGI to get it right yet. Does anyone know off had the change
> > > > that I need to make in the reg_system.cgi???
> > > >
> > > > Thanks Guys...
> > > >
> > > > Mike Allen, 4CheapDomains.Net (AKA: the CGI Dummy!)
> > > > [EMAIL PROTECTED]
> > > > http://www.4CheapDomains.Net
> > > > (812) 275-8425 - Office
> > > > (815) 364-1278 - Fax
> > > >
> > >
> >
> >