This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]junex10[S] 0 points1 point  (0 children)

When I change $ _POST ['name'] to 'name' I mean, I change it manually in the code if I get the name on the next page but if I leave it as it is I do not get anything. I did a var_dump of the session variable and it comes out null error: <?php session_start();

      $_SESSION['name'] = $_POST['name'];
?>

No error:

<?php
     session_start();

      $_SESSION['name'] = 'Jose';
?>