|
Posted by joelbyrd on 03/02/06 05:14
>The pattern ^/\w+\/?/$ probably makes more sense.
Yes, that is better, thank you.
>I would also modify my_profile.php so it finds the user based on the
>user name instead of doing a redirect to the page with the user id.
>Don't really see a reason to do it in two steps.
I think you might have misunderstood what the my_profile.php page is.
It does not
redirect, it _is_ the user profile page, but based on the user_id as
given in the query
string (which is encoded in the query string, so decoded on the page),
it can get all
the information about the user from the database - it's a simple
database-driven page.
Navigation:
[Reply to this message]
|