2017-04-20 Here some production code with bad formatting: echo ""; $ps = substr($permit, 0, 1); if ($ps == '0') $s = "selected"; else $s = ""; echo "foo"; if ($ps == '1') $s = "selected"; else $s = "";echo "bar"; if ($ps == '2') $s = "selected"; else $s = ""; echo "baz"; if ($ps == '3') $s = "selected"; else $s = "";echo "bla"; echo ""; The problem here is not only the formatting, but, as usual, bad formatting indicates bad code too. http://marmaro.de/lue/ markus schnalke