Ok,
i've done this:
session_register("loginok");
$loginok=$login;
session_register("logok");
$passwordok=$password;
This is done in the script which is called upon from the l/p form.
So the l/p fields are filled out, the form is submitted, the 2 vars are checked to see if they're set (!isset());, if so, the login & pass are checked in the database and when they exist, they're registered. I removed 2 the 2 vars from the button, not showing anything in the link, and it works like a charm, thanks a lot!
I had a little trouble with your code, somehow $_SESSION['loginok']; and $loginok=$login; didn't work. I tried echoe'ing the vars on the next page and got blank.
thefisherman