我无法将名字发送到另一个页面
我想制作考试在线剧本但是当我想得到一个名字并发送到另一个页面时我有这个错误
( ! ) Notice: Undefined index: name in C:\wamp\www\daneshtranse\exam\answer.php on line 2
Call Stack
# Time Memory Function Location
1 0.0003 239520 {main}( ) ..\answer.php:0
//
require_once '../database/connection.php';
$FetchedEdit = SelectSolo('exam', 'ASC');
?>
<form action="answer.php" method="post">
<div class="row">
<div class="container">
<div class="exam pull-left">
<?php
// <?php
// input1, input2, input3, input4
while($queryFetched = $FetchedEdit->fetch_assoc()){?>
<h5><?php echo $queryFetched['id'];?> - <?php echo $queryFetched['question'];?></h5>
<input type="radio" class="myRadio" name="<?php echo $queryFetched['id'];?>" value="<?php echo $queryFetched['input1'];?>"><?php echo $queryFetched['input1'];?><br>
<input type="radio" class="myRadio" name="<?php echo $queryFetched['id'];?>" value="<?php echo $queryFetched['input2'];?>"><?php echo $queryFetched['input2'];?><br>
<input type="radio" class="myRadio" name="<?php echo $queryFetched['id'];?>" value="<?php echo $queryFetched['input3'];?>"><?php echo $queryFetched['input3'];?><br>
<input type="radio" class="myRadio" name="<?php echo $queryFetched['id'];?>" value="<?php echo $queryFetched['input4'];?>"><?php echo $queryFetched['input4'];?><br>
<br><hr>
<?php
}
?>
<button type="button" id="submit" class="btn btn-sauces" value="ثبت" name="submit">ssss</button>
</div>
</div>
</div>
</form>
这是答案页
<?php
echo $_POST["name"];
我应该怎么做