Ok, I am about to pull all of my hair out on this one...
I have a form that passes 50 or so vars through post, which works fine. It passes them to a parse script, which I use to turn my post vars to session vars. They then go to a mathematics script that does simple math on the session variables, such as this...
$SESSION['sum'] = ($SESSION['digita']+$_SESSION['digitb']);
and some simple if statements to set the var to 0 if it is null.
The problem is that I worked for two hours to make the script work, due to getting Undefined Index errors. I found that it had to do with my quotes... For example...
If I did it like this
$_SESSION['sum']
I would get an Undefined index error, but if I did it like this...
$SESSION[sum] or '$SESSION[sum]', it would work, but only if it were in perenthesis, if you can believe it... If it weren't in perenthesis, I would get a Use of undefined constant notice.
So after changing my quotes for two hours, it worked... Until I closed my browser. Now it does the same thing... But with a twist... Keep in mind that nothing has changed since it worked. Here goes...
I get 100 or so Undefined Index errors, but if I hit refresh, about half of them go away...
???????????
Help Please!!!!