You are here: Re: [PHP] refreshing an included php file « PHP « IT news, forums, messages
Re: [PHP] refreshing an included php file

Posted by Richard Lynch on 10/02/13 11:11

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация