You are here: Re: $_SESSION - $_GET - reloading page problem « All PHP « IT news, forums, messages
Re: $_SESSION - $_GET - reloading page problem

Posted by Janwillem Borleffs on 03/12/06 23:28

nescio wrote:
> when peole reload the page it adds one up because it executes the
> $_GET variable.
> so, when people got one time item A, and they reload the page, they
> got two times item A.
> but i want them stil to have one time item A after reloading the page.
>
> how can i do this?
>

The easiest solution would be to get rid of the query string by performing a
header("Location: {$_SERVER['PHP_SELF']}"), followed by an exit() after you
have updated the session.


JW

 

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

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