rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Math</title></head><body><fieldset> <legend>Do some math</legend> <form action="math.php" method="POST"> <p><input type="text" name="fn" /> <select name="select"><option>*</option><option>/</option><option>+</option><option>-</option></select> <input type="text" name="sn" /></p> <p><input type="submit" name="action" value="send" /></p> </form></fieldset><p><?php if($_POST['action'] == 'send') { $x = $_POST['fn']; $s = $_POST['select']; $a = $_POST['sn']; $answer = $x . $s . $a; echo("<div style=\"background: #FFFFF0; padding: 20px;\">$x $s $a = $answer</div>"); } else { if($_POST['action'] == 'send' && $x && $a == '') { echo "you didn't enter anything in the inputs"; } }?></p></body></html>