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
Post a Comment