You are here: Re: newbie needs help with sessions.... « PHP Programming Language « IT news, forums, messages
Re: newbie needs help with sessions....

Posted by Floortje on 03/29/07 15:04

angelduran2004@hotmail.com schreef:
> hi. since i'm new to php i don't know how to store data in sessions.
> for example, suppose the user clicked on a link (e.g. "link1"), now
> the user clicks on another link (e.g. "link2"). Now, how do i store
> the data ("link1" and "link2") of what the user has been clicking or
> viewing as the user goes along my site? if you could post some
> example code it would be great. thank you for your time.
>
session_start();
$_SESSION['pages_visited'][]=$_SERVER['REQUEST_URI'];

foreach ($_SESSION['pages_visited'] as $page)
{
echo 'history: <a href = "'.$page.'">'.$page.'</a><br>';
}
--
Arjen
http://www.hondenpage.com

 

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

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