|
Posted by Chung Leong on 03/02/06 07:32
joelbyrd@gmail.com wrote:
> 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.
I understood you just fine. What you are planning to do is to find the
user id based on the given user name in redirect_user.php, then
redirect to my_profile.php, which look up the user record using the id.
What I suggested was to look up the user record using the user name in
my_profile.php. There is no point in doing a redirect to the page when
you can rewrite directly to it.
[Back to original message]
|