Get script with text showing all the time
Posted: Sat Jan 10, 2009 11:50 am
I used to work with PHP a long time ago so my memory is kind of fuzzy, but I can't find the problem with this. The text in $output is supposed to show only when the URL is get.php?move=w, yet it shows on the normal get.php as well. What's the problem?
Code: Select all
<?php
if($_GET['move'] = "w") {
$output .= "
<p>Some textelitexttext.</p>
";
}
else {
$output .= " ";
}
echo $output;
?>