Re: refreshing an included php file

From: Date: Mon, 21 Mar 2005 23:46:53 +0000
Subject: Re: refreshing an included php file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211222@lists.php.net to get a copy of this message
On Mon, March 21, 2005 2:27 pm, AndreaD said: > I have a file, index.php and this has an included file, lets call it > calculate.php. When I insert values in text boxes and hit submit the > values > are written as cookies. The question is how can I refresh calculate.php so > it shows the new value. When you set a cookie, it is sent *TO* the browser, to be sent *back* in the *NEXT* HTTP request. The browser itself does not have access to the cookies, so you can't, say, use javaScript to do calculations with them. The Cookies you just *sent* at the top of your script have not been sent *back* yet -- But since you have the values at the top of the script, you can use those same values in some variables to provide whatever calculations you want. Hope that helps you sort things out... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#211222) next »