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

 how to auto pass new created id to next page

Print topic Send  topic

Author Message
theorix
Posted: 09/15/2003, 10:54 PM

hello guys,

how can i pass the new created id to next page.
lets say, i have 2 pages: page1.asp and page2.asp
after submitting the first page that is page1.asp, it will go to second page with new created id as parameter.

help me
Mutsch
Posted: 09/16/2003, 11:04 AM

Take a look at the CCSExamplePack in CCS. The registration example shows you how to do that. Basically find the last entry (e.g. MAX(id)) and store it in the session. Take a look ath the example. It's pretty straight forward.

Mutsch
Tom
Posted: 09/20/2003, 7:55 AM

Watch out on using max id as it is can be very dangerous if you have more than one person using the site. Concurrency issues abound.
Check out the tips/articles as many are written about getting these 'Auto-Increment' or 'Primary Key Values'.

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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