Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 17-10-2006, 12:35 PM
New kid on the block
 
Join Date: Sep 2006
Location: bangi
Posts: 3
Rep Power: 0
misz_nz is on a distinguished road
Unhappy asp?php?tolong lerr...dh pening nih..

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 for me to insert it:
http://www.anaedar.com/credit.asp?status=$status;

is that 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 17-11-2006, 01:53 AM
phantomic's Avatar
Novice Webmaster
 
Join Date: Jan 2003
Location: KL
Posts: 91
Rep Power: 69
phantomic is on a distinguished road
Send a message via AIM to phantomic Send a message via MSN to phantomic Send a message via Yahoo to phantomic Send a message via Skype™ to phantomic
Hi, have you figure out your problem?

I dont quite get the question,
Is the 3rd party passing you the 'status' variables using POST ?

Secondly, is this string
http://www.anaedar.com/credit.asp?status=$status;
...provided by you or the 3rd party.

Quote:
Originally Posted by misz_nz View Post
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 for me to insert it:
http://www.anaedar.com/credit.asp?status=$status;

is that 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tolong!Tolong!! Urgent giler nie... Apit Website Programming 4 29-03-2008 05:35 PM
masih pening.... metana21 Revenue and Monetization 5 15-11-2005 09:52 PM
tolong.... fauseth82 Website Programming 1 04-12-2003 03:32 PM
tolong yhaffiz Website Programming 2 26-09-2003 12:08 PM
pening pening kuman Website Design 8 26-06-2002 12:47 PM



All times are GMT +8. The time now is 06:13 AM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58