This is my problem: I wanted to make a form that would, with every submission, increment a string variable, to give a different code to every person that fills the form. I used this to make it happen:
session_start();
if(empty($_SESSION['count']))
$_SESSION['count'] = 0;
$order2 = $_SESSION['count']+1;
$_SESSION['count'] = **$order2**;
$med="MED0x";
$resultado = $med . $order2;
If I'm in one browser, and fill up the form several times, the variable increments just fine. But when I change browsers, the variable resets, and it returns to Med0x1
How can I solve this?