You are here: Re: problem with session variables « PHP Programming Language « IT news, forums, messages
Re: problem with session variables

Posted by Jerry Stuckle on 10/09/06 20:26

Garry Jones wrote:
> Elsewhere on a form page I am declaring a variable
>
> *******************************
> session_start();
> $_SESSION['testvar'] = "sometext";
>
> At the top of the page that will process the form code I have this line.
>
> session_start();
> $testppp=$_SESSION['testvar'];
>
> echo $testppp;
>
> *******************************
>
> But nothing is echoed. What am I missing?
>
>
> Garry Jones
> Sweden
>
>

Are you calling session_start() before ANY output is sent to the
browser? This includes html, php output or even white space.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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