if statement - Php retrieve query and use in If statment -
ok, trying able pretty easy in asp reason, despite reading documentation, can figure out why if statement displaying code.
i trying retrieve query string of ?fs=success
if true display html, if not nothing. going wrong page displays code if no query string present. thanks
if ($_get['fs'] = 'success') { echo "<div class='container'><div class='row configurecellsplitbg-ouline color-contrast-yellow text-center'><h3>thank you</h3><p>we have recieved message , soon!</p></div></div>"; }
single = sets it, double equals checks value.
http://php.net/manual/en/language.operators.comparison.php
if ($_get['fs'] == 'success') {
Comments
Post a Comment