Trevor
|
| Posted: 09/13/2002, 7:11 PM |
|
I am using PHP and need to do the following quite urgently. Please help if you can.
I have an order form that is used to place orders online. Once the form is filled, I want a verification screen for the client to make sure everything is OK! If NO, go back to input screen.
If OK! store info in the database and send some of the fields to an external payment gateway URL.
|
|
|
 |
Nicole
|
| Posted: 09/16/2002, 6:59 AM |
|
Trevor,
you need the sort of rollback transaction. Here are some tips how it could be implemented. You need two pages with the same record forms on it. The first one is used to enter information. To let user verify his info you should retrieve the newly inserted primary key value in form After Insert event and pass it to second page. Please refer to following article to find how it could be done: http://www.gotocode.com/art.asp?art_id=80& (Note, that the approach is the same both for CC and CCS). Let assume that primary key is passed through session variable.
On the second page add this session var as Table parameter. Set form property 'Preserve Parameters' to "All" in order to pass primary key value back to first page if user decides to modify the record. All fields on the second record form should be Labels to forbid their editing. Also you should edit the value of Redirect variable in order to redirect user to different pages depending on selected operation.
|
|
|
 |
|