PDA

View Full Version : mail with link



marcusth
10-14-2007, 05:17 AM
I'm doing an web application,sort of a loaning equipment application, shopping cart in another word. Now, i'm stuck and figuring out an issue. My application flow is lyk dis.
user apply loan->onClick submit button, a mail will be send to administrator to inform and in the mail, there is to be a link which allows the administrator to go straight into a page of my application to audit the stock(this is the step which i'm trying to figure it out)

How am i suppose to do such that i can provide the link in the mail to go straight to 1 of the page in my application securely??

Can any1 help me with this tnx alot!!

Cheers

djr33
10-14-2007, 06:49 AM
using the mail() function you can send a link and/or a code.

i'd suggest having this code sent and the link go to a login page.

Once they log in, they can enter the code and go where they need to.

Additionally, you could have the link contain the code, like link.php?code=2348239, then you can store this (hidden value in the form, or session variable), and automatically send the user to the record, once logged in.

marcusth
10-18-2007, 01:12 AM
oh i understand the logic now tnx alot...is there anywhere got tutorial on this dat i can reference on??