Jump to content

Use PHP to Clear the Address Bar?


vystral

Recommended Posts

Ummm if you don't mind, can I ask why you wish to hide the address bar?

 

If it's because you have something like ?var=sensitve data, then you could just use POST (assuming it's user data).... If it's not user data, you could use sessions.

 

If it's just for cleanness that you want to hide URLs then look into mod_rewrite (assuming you're running Apache w/ .htaccess enabled).

Ummm if you don't mind, can I ask why you wish to hide the address bar?

 

If it's because you have something like ?var=sensitve data, then you could just use POST (assuming it's user data).... If it's not user data, you could use sessions.

 

If it's just for cleanness that you want to hide URLs then look into mod_rewrite (assuming you're running Apache w/ .htaccess enabled).

 

There you go. That should work in theory. But, it doesn't seem to be getting the data. Here's what I have:

 

$username=$_POST['username'];

$password=$_POST['password'];

 

..and the form on the previous page:

 

<form name="login" method="get" action="memberhome.php"><input name="username" type="text" value="" size="15" /><input name="password" type="password" size="15" /> etc...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.