md5 hash files.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aredden
Forum Commoner
Posts: 29
Joined: Fri May 25, 2007 7:10 am

md5 hash files.

Post by aredden »

Howdy. Been searching this for a couple days now. I need a way to retrieve information stored in one of my tables after a user has left my site and come back without having any variables to go by(leaving site by means of payment redirection). is there someway to detect session or something similiar so the server will know what information was inputted by who and to retrieve it and move it to a new table within the same db. from a temporary table to a record keeping table.? if this isnt possible, is there a way to create the ability to recall certain elements from a table with minimal user input? I was thinking give the user a record number and have them input it after they complete the transaction.

Any help would be fantastic. Thanks a ton.! :)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Sessions don't expire until they close the browser. They should last long enough for them to finish their payment and return.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Their session shouldn't have terminated, but even then, many payment gateways will thump a URL with some (encrypted) data telling you about the (successful) transaction completion.
aredden
Forum Commoner
Posts: 29
Joined: Fri May 25, 2007 7:10 am

Post by aredden »

so, i hate be a bothersome prat who knows nothing. but where would I start looking for the help on this one? As in what function i need to research and whatnot! :)

Thanks a ton.

,and if thats true about them thumping the redirection url with a completion status that would be fantastic. I should contact paypal again today and find out! :)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Function...? Just look into sessions.

I assumed that, since you've gotten this far, you were already using them.
aredden
Forum Commoner
Posts: 29
Joined: Fri May 25, 2007 7:10 am

Post by aredden »

I'm not currently using sessions as i havent heard of them until moments ago.

but is this how they operate?

startsession > gather information > store session ?via ip? >
(in my case) payment > checksession > if same session=true > run this function?

thx again!:)
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Umm... kind of, but nearly so specific.

A session is a way to keep data from page to page.
aredden
Forum Commoner
Posts: 29
Joined: Fri May 25, 2007 7:10 am

Post by aredden »

perhaps this is the best way to ask my question:

ClientForm -> temptable
-> PaymentPage
payment success -> move record in temp table and store record in maintable + issue email /w attachment

what I need to figure out is the moving of the information part.
aredden
Forum Commoner
Posts: 29
Joined: Fri May 25, 2007 7:10 am

Post by aredden »

hmmm...came up with this.

Client Form to temptable > mysql query id num > store id num in session data > payment page > confirm page.

where confirm page runs this

INSERT INTO newtable (var1, var2, var3, ...) SELECT var1, var2, var3, ... FROM oldtable WHERE oldtable.id = '123456'

and i grab the oldtable id from the user's session data.


Look legit.?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

aredden wrote:ClientForm -> temptable
-> PaymentPage
payment success -> move record in temp table and store record in maintable + issue email /w attachment
Can you be more specific on this "PaymentPage"? Which service is it?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Contact your payment service provider. They should be able to direct you to the information they are able to send to your server once a transaction is completed.
Post Reply