CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Full of questions tonight!

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.