phpsession

<!doctype html>

<?php  session_start();?>


<form action="sessions.php"      method="post">

username:<input type="text" name="value1" / >
email:<input type="text" name="value2" / >
<input type="submit" name="submit" value="submit" / >



</form>

<?php

//this is post method

$username=$_POST['Value1'];
$email=$_POST['Value2'];

$_SESSION['Value1']=$username;

echo "<b>Welcome:</b> .$_SESSION['Value1'];"


//this is get method

echo $_GET['Value1'];

echo $_GET['Value2'];


?>