Re: cookie problems for a newbie

From: Date: Fri, 03 Nov 2000 00:06:59 +0000
Subject: Re: cookie problems for a newbie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23491@lists.php.net to get a copy of this message
On Fri, 03 Nov 2000, Jerry Lake wrote: > I am having a rather difficult time with cookies > I am trying to do a multi part form, for a DSL > signup agreement on the first page is the standard > from guts name, address services selection etc... > > this carries to page two that reiterates all of the > page one info along with an contract agreement with > a check box for agreeing. > > the final page goes to the receipt page as well as > emailing receipts to the office and to the customer > > I've set my cookie on the very top of page one, no leading white space > if this is right anyway... > <? > setcookie ("fname", $firstNAme,time()+3600,"/"); > ?> > > but I don't know how to access them once I submit to the next page > as always any help or point in the right direction is extremely appreciated > > Jerry Lake > (let the dim light shine) The name you give to the cookie becomes a PHP variable, so in the example you show, you could access the value via the variable $fname. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#23491) next »