Hi im rubbish at programming, but im trying....
Im trying to get a page to display the details posted to a form. Part of it is working and part of it isnt for some reason.
Ive declared a new value called "responsecode", responsecode = Request.Form("gtpay_tranx_status_code")
If the value posted to the form field "gtpay_tranx_status_code" is either "00" (double zero) or "001" then it should
run the first part of the code below:
If responsecode = "00" Then '001 is for VISA 00 for interswitch and MIGS
lblTranxDescription = "<font color=green><b>Transaction Completed Succesfully</b></font>" lbltranxID = tranxid lblDescription = "<font color=green><b>Payment Approved Succesfully</b></font>" lbltraAmt = tra_amt
But for some reason although the responsecode is 00 it is not running that but jumping to the last part and shoing it as failed instead:
Else lblTranxDescription = "<font color=red><b>Transaction Failed</b></font>" lblError = responsecode lbltranxID = tranxid lblDescription = responsemessage lbltraAmt = tra_amt
Please can someone point out what ive done wrong?
(Also is it possible to use CreateMHTMLBody "page.asp" to post itself to email or does it have to be another page?)
Im running out of time to get this working, thank you for your help.