Code:
<?php
if( $_POST[‘Submit’] == “Search” ) {
echo "for";
}
else {
echo "";
}
?>
But echo-ing nothing is sort of useless ;-) And we can do without the squiggly brackets for a single statement (the echo). So you could simplify it further like this:
Code:
if( $_POST[‘Submit’] == “Search” )
echo "for";