help for me about session

From: Date: Sun, 24 Apr 2005 02:35:33 +0000
Subject: help for me about session
Groups: php.general 
Request: Send a blank email to php-general+get-213747@lists.php.net to get a copy of this message
hi everyone, when i study php, i have a problem as following: --------------------- file1.php <? if($NextCourse == 1){ do something;} else($NextCourse ==""){do something other } ?> <script language="javascript"> function hasNextCourse(){ document.form1.NextCourse.value = 1; } </script> <form name="form1" method="post" action="file1.php" onSubmit="return checkform()"> <input type="hidden" name="NextCourse"> <input type="submit" name="Submit32" value="next" onClick=" return hasNextCourse()"> </form> ------------------------- 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

« previous php.general (#213747) next »