php - How to get the value of session -


how value home.php , deliver 1home.php using session. want 1home.php value of home.php every change value of it.

session_start(); <form method="post" action="1home.php">     <label id="checkind">             <h3>day</h3>                 <input id="chid" name="chid" type="number" min="<?php echo $_session["day_today"]; ?>" max="<?php echo $_session["day_count"]; ?>" required />             </label> </form> session_start(); <form method="post"  action="2home.php" onsubmit="return validate()"> <label id="checkind">                     <h3>day</h3>                         <input id="chid" name="chid" type="text" value = "  <?php echo $chid; ?>"  readonly />             </label> 

in first page have values

session_start();   $_session["yourvalue1"] = $yourvalue1; $_session["yourvalue2"] = $yourvalue2; 

in second page want them

session_start();  echo "your yourvalue1 value " . $_session["yourvalue1"] . ".<br>"; echo "your yourvalue2 value " . $_session["yourvalue2"] . "."; 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -