Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
asp?php?pls..help me..
Old 10-17-2006, 01:07 AM asp?php?pls..help me..
Junior Talker

Posts: 2
Trades: 0
hi..im newbie here..

can anyone help me..
im currently developed a website using asp that involved with credit card transaction.the 3rd party is using php.from my page to the 3rd party it seems to be ok. the problem now is after the transaction is done, i need to return back to my page which is credit.asp

the 3rd party provide the return url input box for me to insert in it:
http://www.anaedar.com/credit.asp?status=$status;

i'm not familiar with php.is the way i insert it correct?

the page seems like it doesn't read the status that i pass. or is there anything wrong with my asp coding down here?


<%
NOBAKUL = session("nobakul")
Dim rs
Dim strSQL
Set rs = Server.CreateObject("ADODB.Recordset")
With rs
.LockType = 3
.CursorType = 3
.ActiveConnection = conn
End With

strSQL = "SELECT * FROM BAKUL WHERE NOBAKUL = '" &NOBAKUL& "'"
rs.Open strSQL

Dim myStatus
myStatus = Request.Querystring("status")
If myStatus = "-1" Then
rs("STATUSCREDIT") = "-1"
rs.Update
Response.Redirect("main.asp")

Else

if myStatus = "11" Then
rs("STATUSCREDIT") = "11"
rs.Update
Response.Redirect("failure.asp")

Else

if myStatus = "00" Then
rs("STATUSCREDIT") = "00"
rs.Update
Response.Redirect("paparbakul.asp?NoBakul='" &NOBAKUL& "'")
End If
End If
End If
%>


anyone can help me?
thanks in advance.

Last edited by sweetzme; 10-17-2006 at 02:12 AM..
sweetzme is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-17-2006, 01:56 AM Re: asp?php?pls..help me..
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Well, if that's the URL that they give you to return, then all you're going to get back is $status regardless of what the status actually is.

I don't know PHP very well, but you'd basically want to make status a variable rather than part of your hardcoded string.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 10-17-2006, 02:21 AM Re: asp?php?pls..help me..
Junior Talker

Posts: 2
Trades: 0
the URL is inserted by myself ..

the status is either:
-1 : invalid transaction
11 : unsuccessfull transaction
00 : successfull

now, how am i going to get back the status in asp?
is it enough to use request.querystring only?
but as i said before..its not working..
sweetzme is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to asp?php?pls..help me..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12631 seconds with 12 queries