ok what i want to do is make a small shop in php for my members
the theory is:
1 )Member click a link which open a php file that updates their record in the database and inserts a random unique code
2) members goes to a html form enters their User ID and this code which is sent via e-mail
3) users buys what they want and closes page and the code is removed from their record in the database.#
how do i get stage 3 to work how can i get it to remove the code from the database the only weya i can think is ge tht emmebr to click a link to close the window which open anouther windwo with e hte update query then use some html or javascript to close the window?
any ideas?