Posted by Tracy D on 12/21/05 16:06
I know nothing about php. Can anyone help convert this asp script to a php
script?
<% if request("TransID")="" Or request("TransID")=0 then %>
Sorry, your transaction has not been processed!
<% else %>
<% If request("Auth")="Declined" Or request("Auth")="" then%>
Sorry your transaction has been declined!
<BR>
<BR>
<TABLE width="400">
<TR>
<TD align="right" width="184"
bgcolor="#99CCFF"><B>TransactionID:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("TransID")%></B></TD>
</TR>
<TR>
<TD align="right" width="184" bgcolor="#99CCFF"><B>Reference
Number:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("RefNo")%></B></TD>
</TR>
<TR>
<TD align="right" width="184" bgcolor="#99CCFF"><B>Notes:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("Notes")%></B></TD>
</TR>
</TABLE>
<% elseif request("Auth")<>"" Or request("Auth")<>"Declined" then %>
<align="center">Congratulations your transaction has been approved
<BR>
<BR>
<TABLE width="400">
<TR>
<TD align="right" width="185"
bgcolor="#99CCFF"><B>TransactionID:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("TransID")%></B></TD>
</TR>
<TR>
<TD align="right" width="185" bgcolor="#99CCFF"><B>Authorization
Code:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("Auth")%></B></TD>
</TR>
<TR>
<TD align="right" width="185" bgcolor="#99CCFF"><B>Reference
Number:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("RefNo")%></B></TD>
</TR>
<TR>
<TD align="right" width="185" bgcolor="#99CCFF"><B>AVS Code:</B></TD>
<TD bgcolor="#99CCFF"><B><%= request("AVSCode") %></B></TD>
</TR>
<TR>
<TD align="right" width="185" bgcolor="#99CCFF"><B>Notes:</B></TD>
<TD bgcolor="#99CCFF"><B><%=request("Notes")%></B></TD>
</TR>
</TABLE>
<%end if %>
<%end if %>
Navigation:
[Reply to this message]
|