Ok, here is the deal, I have moved my site from one server to an other. (from php 4.2.2 to 4.3.2). Im not intresting in security and that kind of stuff. All I want to do is change it so the settning so i can use my code. I have turn register_globals to ON. But I still having problems with variables. Like icant do like this to clear forms.
if($name != "")
{
$name = "";
}
($name is the value of a text field)
The error message is: "Undefined variable: name"
And my sessesions wont work. icant send it forward.
this i where i collect info: login.php
$query = mysql_query("SELECT * FROM XXX WHERE userid='$userid' AND password='$password'");
if ($res = mysql_fetch_array($query))
{
$_SESSION['userid'] = $res[0];
header("Location: index.php");
exit();
and hare is the problem, I will be redirected to noway.php on my
index.php:
session_start();
if(!isset($_SESSION['userid']))
{
header("Location: noway.php");
exit();
}
All of this works fine on 4.2.2. So I dont want to know how to code this in 4.3.2 (yet, thx anyway) I want to know how to change my setting so the server will handel my sessions and Variables like 4.2.2.
Thanks for your time /knuff