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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -