你没有注册session变量又怎么能打印出来呢?
//sumbit.php
<?php
session_start();
$_SESSION['myvalue'] = $_POST['myvalue'];
?>