title: Possible errors in session
body: <p>I just want to ask what are the possible errors in SESSION... Because I've been suffering from my bugs! My codes are  right but I don't know why it has happened that when I click the submit button it's supposed to pass the value that i declare but it always declare the last value I declared(it means I can't renew the value! once I declared my value that is permanent which is wrong because every time you click the submit it suppose to give new variable)</p>
  
  <p><strong>home.php</strong></p>
  
  <pre><code>&lt;form method="post" action="1home.php"&gt;
  &lt;label id="checkinD"&gt;
                      &lt;h3&gt;Day&lt;/h3&gt;
                          &lt;Input id="chiD" name="chiD" type="number" min="&lt;?php echo $_SESSION["day_today"]; ?&gt;" max="&lt;?php echo $_SESSION["day_count"]; ?&gt;" required /&gt;
              &lt;/label&gt;
  &lt;/form&gt;
  
  $chiD = $_POST['chiD'];
  $_SESSION["chiD"] = "$chiD";
  </code></pre>
  
  <p><strong>1home.php</strong></p>
  
  <pre><code>&lt;form method="post"  action="2home.php" onsubmit="return validate()"&gt;
  &lt;label id="checkinD"&gt;
                      &lt;h3&gt;Day&lt;/h3&gt;
                          &lt;Input id="chiD" name="chiD" type="text" value = " &lt;?php echo $_SESSION["chiD"]; ?&gt;"  readonly /&gt;
              &lt;/label&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>BTW There is also a crazy one that occurs on my codes it's working very smoothly without logical errors but every 4 hours my codes will have logical errors without my fault!!! it's like automated bugs appeared every hour.</p>
  
  <p>and sometimes to make it work I need to erase the name of my form then replace it again and typed the word that I erased. What kind of shit is this?</p>