2016-10-01 1 views

Antwort

0

HTML

<form action="your_php.php" method="post"> 
      <input type="radio" value="1" name="comment"> 
      <label for="comment"> Yes</label> 

      <input type="radio" value="2" name="comment"> 
      <label for="comment"> No</label> 

      <input type="submit" value="Submit" /> 
    </form> 

your_php.php

<?php 
    if(isset($_POST["comment"])) { 
      $comment = $_POST["comment"]; 
} 
      print_r($comment); 

      ?> 
Verwandte Themen