# Idiot here... Needs help with PHP and document.title =

**URL:** <https://forum.kirupa.com/t/idiot-here-needs-help-with-php-and-document-title/279296>\
**Category:** web dev\
**Created:** [January 13, 2009, 1:28am UTC](https://forum.kirupa.com/t/idiot-here-needs-help-with-php-and-document-title/279296 "2009-01-13T01:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheatleyweb](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wheatleyweb](https://forum.kirupa.com/u/wheatleyweb)\
**Post date:** [January 13, 2009, 1:28am UTC](https://forum.kirupa.com/t/idiot-here-needs-help-with-php-and-document-title/279296/1 "2009-01-13T01:28:55Z")

</div>

Hello all,

I’m using PHP for the first time on a site of plant species. Simple PHP header and footer. How can I get the content.PHPs to change the document title. I’m sure this is a simple javascript function, but this doesn’t seem to be working…

```auto
document.title=("TitleTitleTitle")

```

Each plant page needs to have the title of the plant so I can index and make searchable. Right now it only has the title I specified for the homepage (as it is part of the header)

Any help would be appreciated. It’s ok to laugh. I can take it. I just cannot figure this one out.

Thanks

wheatleyweb
