Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Dynamic sites - title change

Codes here !

Moderators: macek, egami, gesf

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
TheSameFace
New php-forum User
New php-forum User
 
Posts: 5
Joined: Tue Jan 21, 2003 7:29 am

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.
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars


Return to mySQL & php coding

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron