CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 How do I pass parameters from one page to another

Print topic Send  topic

Author Message
Mark
Posted: 06/23/2002, 6:37 AM

Hi,

good newbie question !

I have a series of pages that make up a kind of workflow and I need to be able to pass data from one page to the next - normally data that's been input on a previous page - how do I do this ?

Many Thanks,
Mark

CCS v1, PHP4, MySQL

Mark
Posted: 06/23/2002, 7:50 AM

Hi,

making some progress, but would appreciate amy pointers!

My first requirement is to pass autoincrement key of newly inserted record to next page.

I have the following custom code in the After Insert event for record (as per a previous thread) -

$last = mysql_insert_id ();
//set a session variable to contain the value of autoincrement key for user record
set_session("pk_field",$last);

On the following page, I have a 'Retrieve Value for Control' action in the Before Insert event for the next record, in order to populate hidden field with the session variable -

Control Name = autoid
Source Type = Session
Source Name = pk_field

Two questions -

1. Is this the right way to pass session variables between pages?
2. When I click the Insert button for the record on the first page, why do I get the following error ?

Fatal error: Call to undefined function: set_session() in ./Registration1_events.php on line 16

Line 16 is where the set_session statement is for the custom code ... is there something I need to do with my local PHP setup (on my PC) ?
Sessions are logging ok..

Many Thanks,
Mark


Nicole
Posted: 06/26/2002, 12:59 AM

Mark,
Please refer to Common.php file to find what functions are used in CCS. To set custom session var use CCSet_Session(“param_name”, param_value)
To retrieve session value use CCGet_Session(“param_name”)

   


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

MS Access to Web

Convert MS Access to Web.
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.