嘿那里,我有三页:(1)bookingfacilities.php(2)booking_now.php(3)successfulbooking.php和他们链接在一起.
我想通过使用隐藏字段/值将数据从bookingfacilities.php传递给successfulbooking.php.但是,我的数据不会在successfulbooking.php中打印出来.
这是我的代码:
来自'booking_now.php':
$date="$day-$month-$year";
来自'successfulbooking.php';
<input type="hidden" name="date" id="hiddenField" value="<?php print "$date" ?>"/>
我非常感谢你的帮助,因为我的项目将于明天到期:(
<?php
session start();
?>
<?php echo $_SESSION['username']; ?>,
Please submit this form to book a project room in the Business School.
Run Code Online (Sandbox Code Playgroud)
嗨,我一直在尝试在表单上打印$ _SESSION ['username'].但没有任何印刷品.我已经通过了session start(); 在所有必要的文件,但它仍然不起作用:/请做的建议.
我也试过使用隐藏值,但它不起作用.:/