I'm making a user home system where users could visit each others home or view there own. This would work via example.com/profile/username
I have the .htaccess which currently is;
RewriteRule ^profile/(.*)/?$ index.php?url=profile&user=$1 [L,QSA]
Which basically enables the fact that I can now go and do example.com/profile/Ryan
or any name at all! But the question is how can I make the html title tag say the person's username.
The engine I'm using enables me to $_GET['user']
but when I do this I just get this:
I understand I'll probably have to echo it with some php so likewise I did...
<title>Wrex - <?php echo $_GET['user'] ?></title>
But this doesn't print anything and leaves the title as Wrex - :S
PS: The file extension is php
.