0

I have a drop down list on page1.php

<?php $dbtables = $_COOKIE["notables"];`
 if ($dbtables == "41")
 echo "option selected = 'true' value = '41'>41</option?>";
 else echo "<option value='41'>41</option>"; ?>

if(isset($_POST['Submitbtn'])){$_SESSION["tables"] = $_POST['notables'];
die("<script>location.href = 'page2.php'</script>");

i want to display the value to page2.php using session but it is blank. No.of tables:

i have started session_start(); on both page. is there anything wrong?

ff cc
  • 21
  • 5

0 Answers0