php - How to pass value of variable from one page to another using header? -


how can pass value of $_post['login'] variable $login, use value in page home.php ? using code:

header('location:home.php'); 

by using session-variables, this:

<?php session_start(); $_session['login'] = $_post['login']; header('location:home.php'); ?> 

and

<?php // home.php session_start(); $login = $_session['login']; ?> 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -