Re: Registering an Array in a Session

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Registering an Array in a Session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96412@lists.php.net to get a copy of this message
> I am trying to register an array in a session, but am having no luck. [..] > where fieldtext is the name of a field on the form, and $page is the > page number, which increases by one each time the form is submitted. <? php // Register the Session Variable, and increment this page session_register("fieldtext"); $_SESSION["fieldtext"][".$page."]++; // Show all pages print_r($_SESSION["fieldtext"]); ?> That should get you started. -- Dan Hardiker [dhardiker@staff.firstcreative.net] ADAM Software & Systems Engineer First Creative Ltd

« previous php.general (#96412) next »