Código PHP:
<?php
session_start();
$_SESSION['user'] = $_POST['user'];
$_SESSION["workgroup"] = $_POST["workgroup"];
?>
Código HTML:
<form method="post" action="validate.php" enctype="application/x-www-form-urlencoded"> <label><strong>User</strong></label><br/> <input name="user" id="user" type="text" style="width:340px;" class="form" /> <br/> <label><strong>Password</strong></label><br/> <input name="password" id="password" type="password" style="width:340px;" class="form" /> <br/> <label><strong>WorkGroup</strong></label><br/> <select name="workgroup" id="workgroup" class="form" > <option value="CallCenter">CallCenter</option> <option value="Medical Center">MedicalCenter</option> <option value="GrupoAC">GrupoAC</option> <option value="admin">Admin</option> </select><br/> <input name="login" type="submit" class="btnLog" value="" /> </form>
Código PHP:
<?php
echo $_SESSION["user"];
echo $_SESSION["workgroup"];
?>