You are here: Can the URL be controlled for more user-friendly readability? « PHP « IT news, forums, messages
Can the URL be controlled for more user-friendly readability?

Posted by Dave M G on 09/30/24 11:35

PHP General,

I have a PHP/MySQL web site where there are profiles for performers at
a comedy show. The profiles are accessed by passing a variable to the
PHP script via URL, which can then look up the right performer data in
the database.
The resulting URL looks like this:
http://www.tokyocomedy.com/people.php?person=6
However, having "?person=6" in the URL is not only ugly, but it makes
it hard for people to remember URLs and for the performers to use them
when sending out information about themselves.
It would be much nicer to have the url look more like this:
http://www.tokyocomedy.com/firstname-lastname
Or something like that.

But I can't figure out if there is a way to control the way the URL
reads after the performer has been looked up. And, even if I could,
would the system be able to retrieve performer data if someone typed the
name directly into the URL.

Obviously, I'm still a bit of a beginner with PHP. I may have
approached this issue from the wrong starting point, so please let me
know if I'm missing something fundamental.

Thank you for any advice you may have.

--
Dave M G

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация