Re: refreshing an included php file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux