RE: [PHP] cookie problems for a newbie

From: Date: Fri, 03 Nov 2000 00:43:23 +0000
Subject: RE: [PHP] cookie problems for a newbie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23493@lists.php.net to get a copy of this message
If I set them on the second page I can get the info in the third(if I hit refresh) but if I put them on the first they don't show up at all...any thoughts? Jerry Lake -----Original Message----- From: David Robley [mailto:huntsman@hermes.nisu.flinders.edu.au] Sent: Thursday, November 02, 2000 4:07 PM To: Jerry Lake; php-general@lists.php.net Subject: Re: [PHP] cookie problems for a newbie 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 (#23493) next »