> > Not sure I understand the question. If you truly want to keep it from
> > displaying in the *address bar*, simply use POST instead of GET for your
> > form method.
> This is not a form. It's a plain old HTML table:
OK, but you previously said:
> >> When user clickes "EDIT" I pop up a form with all the customer details.
I understand what you mean now, but it *was* a bit misleading.
> <td>Mary Jones</td><td><href:"someplace.php&id=127"<Edit>
> <td>Joe Jones</td><td><href:"someplace.php&id=156"<Edit>
> When user clicks "Edit" when the "somplace.php" page loads in the address
> of the browser will be the URL with the ID. I want to somehow erase the
> id=156 part of the URL.
I don't believe it is possible to do what you want in PHP. If you are running
Apache, look into mod_rewrite:
> Maybe I should put a form with a form button inside the cell and set the
> value to the user ID and then set a session variable before I send the
> page??? That might work better.... except form submit buttons are so ugly.
I'm still not clear why obscuring this information from the address bar is so
important, since the user can still obtain the data via other methods (e.g.,
cache, browser history, status bar, source code). If you are going to revert
to the form method, then just POST the information as a hidden value, like
<input type="hidden" name="ID" value="156">
Why make it more complex than it needs to be? The data will never appear in
the URL string, so you don't have to worry about masking it from the address
bar (though it will still be visible to anyone looking at your source, prior
to clicking the submit button).
As for "ugly" submit buttons, style them with CSS:
<input type="submit" value="Submit!" style="background: black; color: white;
Here's a more elaborate one, using an image:
<input type="submit" value="Submit!" style="background-image: url('bg.jpg');
background-repeat: repeat; font-family: Arial, Helvetica, sans-serif;
font-style: italic; font-weight: bold">