You are here: Re: [PHP] help for me about session « PHP « IT news, forums, messages
Re: [PHP] help for me about session

Posted by Steve Buehler on 04/24/05 05:54

At 09:35 PM 4/23/2005, Josephson Tracy wrote:


>hi everyone,
>when i study php, i have a problem as following:
>---------------------
>file1.php
><?
>if($NextCourse == 1){ do something;}
>else($NextCourse ==""){do something other }
>?>
>-------------------------
>but when the 2ed access the file1.php
>the value of $NextCourse is the $NextCourse in the <? and ?>, Not the
>value of document.form1.NextCourse.value.
>
>could someone tell me why?thanks

I believe it should be:
<?
if($NextCourse == 1){ do something; }
elseif(!$NextCourse){ do something other; }
<?

By the way you have your statement, I think you are only looking for the
"1". You might try the following instead.
<?
if($NextCourse == 1){
do something;
}else{
do something else;
}
?>

 

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

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