Gotchya, ok... so first things first...
switch from
Code:
<form method="GET"...>
to
<form method="POST"...>
on the page where you enter your information...
then, change any references in register_pass.php from $_GET to $_POST
that'll take care of the information being readily available to people. However, the enterprising individual will be able to still get there by simply writing their own page, which has a form setup to submit to your page. If this is ok by you, you're done... if you want some more protection then... at the very beginning of the register.php page put...
Code:
session_start();
$_SESSION['foo']='bar';
and at the top of the register_pass.php page put
session_start();
if ($_SESSION['foo'] != 'bar') {
die "Stop trying to sneak on my page!";
}
Obviouslly handle it however you want...
the concept here is that form variables can be passed either in the URL or behind the scenes, but either way they're passed clearly as part of the web page request. So even if you hide them from view, a malicious user can go ahead and cheat. Sessions are much better protected, a session_id can be sent with the page request, but the information itself is stored on the server, if the id and the info don't match up, the info isn't available.... there's no way I'm aware of in which they'll be able to spoof the setting of that variable without having access to your server. (That's a seriously oversimplified explanation, but for 2 am I think it gets to the point.)
-Rob