input radio script
function adiradio() {
  var text = document.getElementById("txopcion").value; //obtiene el text para la opcion
  if (text != '') { //que no se pueda poner opciones vacias
    var node = document.createElement("P"); //etiqueta p
    var x = document.createElement("INPUT"); //crea un input
    var textnode = document.createTextNode(text); //asigna el text 
    x.setAttribute("type", "radio"); //hace que type del input sea radio
    x.setAttribute("name", "alternati");
    x.setAttribute("value", text);
    node.appendChild(x);
    node.appendChild(textnode);
     document.getElementById("adicionarR").appendChild(node);
  }
}<form action="pregunta-quest.php" method="post">
  <input type="text" id="txopcion" placeholder="Escribe Opción">
  <button type="button" onclick="adiradio()">agregar</button>
  <br>
  <span id="adicionarR"></span>
</form>Pregunta-quest.php
$valAlter=$_POST['alternati']; //line 11
Notice: Undefined index: alternati in C:\xampp\htdocs\phpLogin\pregunta-quest.php on line 11
