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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -