Can someone tell me why the variable is not being displayed in bold once I press submit? In essence what I am trying to do is ask the user on page 1, there name... then a few pages later display that name inside a hidden input form field, but I can't seem to get it working on the same page never mind a few pages later.
<body>
<strong>Test Form</strong>
<form action="" method"post">
<input type="text" name="picturenum"/>
<input type="submit" name="Submit" value="Submit!" />
</form>
<?php
// starting the session
session_start();
if (isset($_POST['Submit'])) {
$_SESSION['picturenum'] = $_POST['picturenum'];
}
?>
<strong><?php echo $_SESSION['picturenum'];?></strong>
</body>
Thank you for your time