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
Post a Comment