Page 1 of 1

Title problem in php

Posted: Fri Mar 05, 2010 10:52 pm
by moglimani
Hi,

I had given the title in the head section but doesnt displayed in the title bar of the browser..i dont know why,
but it is saved as .php only.

Re: Title problem in php

Posted: Fri Mar 05, 2010 11:28 pm
by mikosiko
what?

Re: Title problem in php

Posted: Sat Mar 06, 2010 12:18 am
by moglimani
form.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php require 'dbcon.php';?>
<html>
<head>
<title>FORM</title>


but in the browser title as a untitled

Re: Title problem in php

Posted: Sat Mar 06, 2010 12:40 am
by mikosiko
work for me... maybe something incorrect or not properly closed in your included file

Re: Title problem in php

Posted: Sat Mar 06, 2010 1:17 am
by moglimani
mikosiko wrote:work for me... maybe something incorrect or not properly closed in your included file

no,all tags are closed correctly

Re: Title problem in php

Posted: Sat Mar 06, 2010 10:30 am
by social_experiment
Try putting the require statement before ANY output (even the html header)

Code: Select all

<?php require 'dbcon.php';?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>FORM</title>

Re: Title problem in php

Posted: Sun Mar 07, 2010 9:26 pm
by moglimani
wat to do now

Re: Title problem in php

Posted: Mon Mar 08, 2010 1:16 am
by social_experiment
Have you tried any of the suggestions you received?, If so, what results did you get?

Re: Title problem in php

Posted: Mon Mar 15, 2010 2:05 am
by moglimani
ya i got the result
i am inducing the include function in the first line itself thats the problem..
now i cleared it