>>962
ありがとうございます
原因がわかりました

a.html
<form method="post" action="a.php">
<input type="radio" name="hoge" value="a">a
<input type="radio" name="hoge" value="b">b<br>
<input type="submit">
</form>

a.php
<?php
error_reporting(E_ALL);
function piyo($post) {
if (isset($post)) {
return $post;
} else {
return null;
}
}
echo piyo($_POST['hoge']);

このように関数を通すとだめなようです
でも関数を通したいんですけどどうしたらいいでしょうか?