Can the URL be controlled for more user-friendly readability?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux