That can be fixed by checking the isset status:
if (isset($_POST['name'], $_POST['size'], $_POST['gender']))
print "<p>Name: $name<br />Size: $size<br />Gender: $gender</p>";
Would do it. You'll get very familiar with the isset construct in PHP.