Dynamic sites - title change

Codes here !

Moderators: macek, egami, gesf

TheSameFace
New php-forum User
New php-forum User
Posts: 5
Joined: Tue Jan 21, 2003 7:29 am

Dynamic sites - title change

Postby TheSameFace » Tue Jan 21, 2003 7:31 am

Hi, how can I change the <title>???</title> on a dynamic page. My site is build using php and mysql DB.
Thnx

User avatar
Joan Garnet
Moderator
Moderator
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars
Contact:

Postby Joan Garnet » Tue Jan 21, 2003 1:38 pm

If you send a GET variable containing the title -->

Code: Select all

<title>
<?php echo $HTTP_GET_VARS["my_title"]; ?>
</title>


If you use POST method, then change for $HTTP_POST_VARS["my_title"]

If you keep your titles in a database, then tell us your specific case.


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 3 guests