Jump to content


Photo

php in title


  • Please log in to reply
2 replies to this topic

#1 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 11 June 2006 - 03:04 PM

<title>2fr3sh - <?php

if ($page = "") {
    echo "Home Page";
} else {
    echo $page;
}

 ?></title>

can some one tell me what i am doing wrong

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 11 June 2006 - 03:06 PM

change it to

if ($page == "") { // (== not =)
echo "Home Page";
} else {
echo $page;
}
z..z..z..z..z..z..z..z..

#3 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 11 June 2006 - 03:09 PM

thank you it worked




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users