You may also want to take a look into encrypting the password. Look in the php manual for md5().
This is a one way algorithm, and is pretty secure. This way, if you are passing the encrypted variable in the URL, then the password isn't exposed in the URL.