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).

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Magnificient. Thanks everyone.

 

One more question, if I may...what is the basic PHP coding to make a form add a row to a MySQL database? I understand the array_push method, but I don't know how to apply that to an actual database.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.