Eric wrote:[color=blue]
> Leif K-Brooks <eurleif@ecritters.biz> wrote:
>
>[color=green]
>>Eric wrote:
>>[color=darkred]
>>><a href="http://www.aaa.com/randompage.php?name=data">
>>>
>>>What I am wondering is if there was a way to do the same thing, but use
>>>the POST Method instead...?
>>>
>>>My purpose in doing so is to keep the URLs the user sees clean by not
>>>putting anything in them that they do not need to see.[/color]
>>
>>No, but there are some a couple of things I would do to make your URL
>>cleaner.
>>
>>First of all, I would get rid of the ".php" extension. It's really an
>>implementation detail of how your Web site is built, and looks pretty
>>ugly to my tastes.[/color]
>
>
> Interesting. I had not considered that before.
>
>[color=green]
>>Most Web servers have options that would let you use
>>/randompage instead of /randompage.php if configured properly.
>>
>>Also, if the data you're passing is really something like a name or ID,
>>why not make it part of the path instead of putting it in the query
>>string? PHP puts extra path components in the variable
>>$_SERVER['PATH_INFO'] for your application to use.
>>
>>So in the end, your URL would look like:
>>
>>
http://example.com/randompage/data[/color]
>
>
> It could be something like a name or ID, but it could also be just about
> any other random piece of data one might see being passed via the GET
> Method and, perhaps, multiple pieces of data.
>
> Also, can you provide a reference to a tutorial on how to make use of
> the PATH_INFO technique?[/color]
Assuming from the above you are using PHP, here is a basic tutorial
(with an odd URL considering its purpose)
http://agachi.name/weblog/archives/2...endly-urls.htm
but this matter is better discussed on c.l.php but some quick comments
for consideration.
Exposing the string query real values in an URL can be fraught. They can
be altered maliciously in transmission. Nobody can prevent this but
contamination can be detected and the request rejected; only valid
values (or substitutes) being actioned. Google then c.l.php
Another reason to rewrite URLs is to obscurate the directory structure,
again better discussed elsewhere.
Another reason is to overcome search engines problems with the "=" in
the query string.
And the list goes on
Louise