You are here: Another newbie session variable question « PHP Programming Language « IT news, forums, messages
Another newbie session variable question

Posted by Big Moxy on 08/04/07 03:09

I have a form variable that is set to a default value in the beginning
of a multi-page process. Along the way, a user can optionally update/
null out that field. Before the final page is rendered I would like to
blank out other variables that may have still have their default
values or updated by the user and are now meaningless.

I wanted to do this but my last page no longer renders. Can I do the
following?

if ($_SESSION['phrase'] == "" {
$_SESSION['font_type'] = "^^no^^";
$_SESSION['thread_color'] = "^^no^^";
}

I have also tried this but again the last page no longer renders.

if ($_SESSION['phrase'] == "" {
$font_type = "^^no^^";
$thread_color = "^^no^^";
}

 

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

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