The problem was that i was telling php that the session variable was the result of the posted data, so when i went back to info.php without posted anything, they became 0, got it with this code from the help off another forum:
Code:<?php session_start(); if(isset($_POST['number']) && !empty($_POST['number'])) { $_SESSION['num'] = $_POST['number']; } echo $_SESSION['num']; ?>




Reply With Quote