Monday, July 30, 2018

html - PHP echo H1 depending on page

How can i echo a h1 depending on the variable set on the page? The script below is breaking my page. Looks like my syntax is incorrect







if($page =="home_page") {echo "

" 'Mountain ' "

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

" 'parts ' "

"; }

else if($page =="cars") {echo "

" 'cars ' "

"; }

?>





Many thanks,
P

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...