Q:

Displaying a session variable

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

A:

You have a typo:
<form action="" method"post"> Should probably be <form action="" method="post">
This is causing your form to submit as a GET request. That means your vars are in $_GET instead of $_POST.

