Please use your browser's Back button to return to the order form > and complete all of the information..> [/showif]>> [showif [math]OK[/math]=1]> [showif [validcard accountNum=[convertchars db=CleanCard.db] > [_accountnum][/convertchars]&card=VISA+MC+AMEX]!T]> [math show=f]OK=0[/math]> The credit card number entered ([_accountNum]) is not valid. Check > to make sure you did not mis-type> any numbers or enter any extra characters. Please back up using your > back button and re-enter and double-check the number again.> [/showif]> [/showif]>> [showif [_CredCardAgree]="No"]> You failed to agree to the Credit Card Statement. We cannot process > online orders unless you have agreed to allow us to charge your > credit card for your purchases. Credit Card charges are not > disputable after you submit your order. Please back up using your > back button and re-enter and double-check the number again.> [/showif]>> [showif [math]OK[/math]=1]>> [orderfile cart=[cart]]>> [SetHeader cart=[cart]]&[formvariables > name=_&exact=F]&Header[Index]=[url][value][/url]&[/formvariables][/ > SetHeader]>>
Everyone,
I am a neophite WebDNA user and need =some help. I am trying to do checking on a radio button to ensure that =users have read the credit card agreement and have checked the "Yes" =button so they cannot dispute the charges on their card. I created a =variable called "_CredCardAgree" and am getting the correct value in the =email I am sending, but it is not checking. It processes regardless of =which option is checked. I have taken the following code, which all =works, except for the _CredCardAgree part, and checks for missing fields =and invalid credit card numbers:
= &n=bsp; [math show=3Df]OK=3D1[/math]
[showif =[_FirstName]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_LastName]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Address]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_City]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_State]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Zip]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Phone]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Email]=3D][math show=3Df]OK=3D0[/math][/showif]
[!][showif =[_CredCardAgree]=3D][math show=3Df]OK=3D0[/math][/showif][/!]
[show=if [math]OK[/math]=3D0]
<H1>You have not provided information in =all of the required fields. You must have first and last name, address, =city, state, zip, phone and valid email address so we can ship your =order and contact you if there are problems with your =order.
<p>Please use your browser's Back button to return to the =order form and complete all of the =information.</H1>.
[/showif]
[showif =[math]OK[/math]=3D1]
[showif [validcard accountNum=3D[convertchars =db=3DCleanCard.db][_accountnum][/convertchars]&card=3DVISA+MC+AMEX]!T]=
[math show=3Df]OK=3D0[/math]
The credit card number entered =([_accountNum]) is not valid. Check to make sure you did not =mis-type
any numbers or enter any extra characters. Please back up =using your back button and re-enter and double-check the number =again.
[/showif]
[/showif]
[showif =[_CredCardAgree]=3D"No"]
You failed to agree to the Credit Card =Statement. We cannot process online orders unless you have agreed to =allow us to charge your credit card for your purchases. Credit Card =charges are not disputable after you submit your order. Please back up =using your back button and re-enter and double-check the number =again.
[/showif]
[showif [math]OK[/math]=3D1]
[orderfile =cart=3D[cart]]
[SetHeader cart=3D[cart]]&[formvariables =name=3D_&exact=3DF]&Header[Index]=3D[url][value][/url]&[/formv=ariables][/SetHeader]
<H3>Your Final Invoice For Order #[cart] =Contains the Following Items</H3>
I'm reading the programming =guide now for insights, but need to get this live as soon as possible. =(That's a surprise, right?) I tried putting it inside a math block like =the credit card validation, adding it to the first group of "showif"s =and it would not display an error page.
Thanks for any help in =advance.
Tony Miller
tmiller@thehawkeye.com
<=br>
---------------------------------------------------------
This =message is sent to you because you are subscribed to
the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives=: http://mail.webdna.us/l=ist/talk@webdna.us
old archives: http://dev.webdna.us/TalkLi=stArchive/
|
Please use your browser's Back button to return to the order form > and complete all of the information..> [/showif]>> [showif [math]OK[/math]=1]> [showif [validcard accountNum=[convertchars db=CleanCard.db] > [_accountnum][/convertchars]&card=VISA+MC+AMEX]!T]> [math show=f]OK=0[/math]> The credit card number entered ([_accountNum]) is not valid. Check > to make sure you did not mis-type> any numbers or enter any extra characters. Please back up using your > back button and re-enter and double-check the number again.> [/showif]> [/showif]>> [showif [_CredCardAgree]="No"]> You failed to agree to the Credit Card Statement. We cannot process > online orders unless you have agreed to allow us to charge your > credit card for your purchases. Credit Card charges are not > disputable after you submit your order. Please back up using your > back button and re-enter and double-check the number again.> [/showif]>> [showif [math]OK[/math]=1]>> [orderfile cart=[cart]]>> [SetHeader cart=[cart]]&[formvariables > name=_&exact=F]&Header[Index]=[url][value][/url]&[/formvariables][/ > SetHeader]>>
Everyone,
I am a neophite WebDNA user and need =some help. I am trying to do checking on a radio button to ensure that =users have read the credit card agreement and have checked the "Yes" =button so they cannot dispute the charges on their card. I created a =variable called "_CredCardAgree" and am getting the correct value in the =email I am sending, but it is not checking. It processes regardless of =which option is checked. I have taken the following code, which all =works, except for the _CredCardAgree part, and checks for missing fields =and invalid credit card numbers:
= &n=bsp; [math show=3Df]OK=3D1[/math]
[showif =[_FirstName]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_LastName]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Address]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_City]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_State]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Zip]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Phone]=3D][math show=3Df]OK=3D0[/math][/showif]
[showif =[_Email]=3D][math show=3Df]OK=3D0[/math][/showif]
[!][showif =[_CredCardAgree]=3D][math show=3Df]OK=3D0[/math][/showif][/!]
[show=if [math]OK[/math]=3D0]
<H1>You have not provided information in =all of the required fields. You must have first and last name, address, =city, state, zip, phone and valid email address so we can ship your =order and contact you if there are problems with your =order.
<p>Please use your browser's Back button to return to the =order form and complete all of the =information.</H1>.
[/showif]
[showif =[math]OK[/math]=3D1]
[showif [validcard accountNum=3D[convertchars =db=3DCleanCard.db][_accountnum][/convertchars]&card=3DVISA+MC+AMEX]!T]=
[math show=3Df]OK=3D0[/math]
The credit card number entered =([_accountNum]) is not valid. Check to make sure you did not =mis-type
any numbers or enter any extra characters. Please back up =using your back button and re-enter and double-check the number =again.
[/showif]
[/showif]
[showif =[_CredCardAgree]=3D"No"]
You failed to agree to the Credit Card =Statement. We cannot process online orders unless you have agreed to =allow us to charge your credit card for your purchases. Credit Card =charges are not disputable after you submit your order. Please back up =using your back button and re-enter and double-check the number =again.
[/showif]
[showif [math]OK[/math]=3D1]
[orderfile =cart=3D[cart]]
[SetHeader cart=3D[cart]]&[formvariables =name=3D_&exact=3DF]&Header[Index]=3D[url][value][/url]&[/formv=ariables][/SetHeader]
<H3>Your Final Invoice For Order #[cart] =Contains the Following Items</H3>
I'm reading the programming =guide now for insights, but need to get this live as soon as possible. =(That's a surprise, right?) I tried putting it inside a math block like =the credit card validation, adding it to the first group of "showif"s =and it would not display an error page.
Thanks for any help in =advance.
Tony Miller
tmiller@thehawkeye.com
<=br>
---------------------------------------------------------
This =message is sent to you because you are subscribed to
the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives=: http://mail.webdna.us/l=ist/talk@webdna.us
old archives: http://dev.webdna.us/TalkLi=stArchive/
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...