473,225 Members | 713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

Help with redirecting please

Firstly, many thanks to those who replied to my dreaded what if question. As a
result I have now been able to partially resolve my problem as follows:
step 1 - User clicks on "buy me" button
step 2 - He is sent to a confirmation page to confirm purchase or cancel
step 3 - Confirmation page first checks the pending transaction table and
deletes all records that are older than 20mins.
step 4 - Confirmation page then checks the pending transaction table again to
see if the item that the person wants to buy remains in the table. If the answer
is yes then the buyer is blocked from purchasing. If the answer is no then the
buyer may proceed with purchase. If he clicks on the confirm button he is then
sent to Paypal site to make his payment.

The above prevents 2 people from trying to buy the same item within a 20 min
period. However, it is still not foolproof.
Buyer 1 arrives at confirmation page and decides to go and make coffee. After 19
minutes he returns to complete his payment via paypal. While he is making
payment buyer 2 tries to buy same product and can do so because 20 mins has

So I need to execute some final php code before sending the payment to paypal
for processing but I don't want to do it via another form. I have added another
field in the pending transactions table called status and heres what I want to

step 1 - User clicks on confirm purchase to make payment and is sent to a
redirect page.
step 2 - Redirect page checks to see if more than 20mins has elapsed. If the
answer is yes then display a timeout page. If the answer is no then
update the status in the pending transaction table to "confirmed" and send the
variables held within $_POST to paypal but NOT by using a form.

Updating the tables is not a problem for me, it is the redirecting that i'm not
sure about. Any help greatly appreciated.


May 30 '06 #1
0 1200

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: nagaraj | last post by:
Hi All, Good Morning, The problem which i am facing is related with IIS 6.0 in Win2K3. The problem: I have a ASP page which redirect a zip file which resides in
by: PaulThomas | last post by:
Working with XP-Pro and VS.Net I have set my Start Page to "Home.aspx" but the application always starts the "Login" page - - - How can I change the start page to the Home.aspx??? On the login...
by: Matt Burland | last post by:
I'm having a problem with redirecting the StandardOutput of a process that I use to run a DOS program in my application. The problem is that I when I start my process (which I do in a separate...
by: Jeff Louie | last post by:
Well I wonder if my old brain can handle threading. Dose this code look reasonable. Regards, Jeff using System; using System.Diagnostics; using System.IO; using System.Threading;
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
by: Jonathan Wood | last post by:
I've spent days trying to come up with a solution. I'd appreciate it if anyone can help. My site requires all users to log on. There are three different roles of users, and each user type will...
by: KiranJyothi | last post by:
Hello All, In whotofile.c, we can see that we are redirecting the output of who to a file. In pipe.c, we see that we are redirecting the o/p of first command as the input to the next command....
by: damiensawyer | last post by:
Hi, I'm trying to do something in global.asax that I would have thought to be quite simple. Basically, any request at all should get sent to another page. I actually got the code below from a...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.