Opa pessoal, estou com dificuldades em imprimir o restante dos echos, o que estou fazendo de errado?
$valor1 = $_POST['valor1'];
$valor2 = $_POST['valor2'];
$valor3 = $_POST['valor3'];
$caracter = "<";
if($valor1 < $valor2 && $valor1 < $valor3 && $valor2 < $valor3){
echo $valor1,$caracter,$valor2,$caracter,$valor3;
}elseif($valor1 < $valor2 && $valor1 < $valor3 && $valor2 > $valor3){
echo $valor1,$caracter,$valor3,$caracter,$valor2;
}elseif($valor1 > $valor2 && $valor1 < $valor3 && $valor2 > $valor3){
echo $valor2,$caracter,$valor1,$caracter,$valor3;
}elseif($valor1 > $valor2 && $valor1 > $valor3 && $valor2 < $valor3){
echo $valor2,$caracter,$valor3,$caracter,$valor1;
}elseif($valor1 < $valor2 && $valor1 > $valor3 && $valor2 > $valor3){
echo $valor3,$caracter,$valor1,$caracter,$valor2;
}elseif($valor1 < $valor2 && $valor1 > $valor3 && $valor2 > $valor3){
echo $valor3,$caracter,$valor2,$caracter,$valor1;}
}
?>
Valor 1 : <input type="text" name="valor1"> Valor 2 : <input type="text" name="valor2"> Valor 3 : <input type="text" name="valor3"> <input type="submit"> </form>