PHP Conditional Tag

Unlock4841

New Member
I'm trying to change the color of an SVG when the current page is "work.php"Using the following code\[code\]<?php if($page=='work'){echo 'white';} else{echo '#C22533';}?>\[/code\]I consistently get the color '#C22533' even if I am on "work.php"How might I correct this PHP code?
 
Back
Top