[PHP] refreshing an included php file

2005-03-21 Thread AndreaD
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.

AD

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



RE: [PHP] refreshing an included php file

2005-03-21 Thread Chris W. Parker
AndreaD mailto:[EMAIL PROTECTED]
on Monday, March 21, 2005 2:27 PM 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.

By submitting the form probably...?

You haven't provided any code, or actual problems. If you wrote the code
correctly within calculate.php you wouldn't be asking this question.
Upon refresh/reload of index.php, calculate.php should be updating your
cookie.



Chris.

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



Re: [PHP] refreshing an included php file

2005-03-21 Thread Richard Lynch
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