1

Temat: [PHP] form

<form method="post" style="font-size: 32px; margin: 100px;">
    text(t): <input type="text" name="t" value="1"><br>
    number(n): <input type="number" name="n" value="1"><br>
    <input type="checkbox" name="c" value="1"> checkbox(c)<br>
    <input type="radio" name="r" value="1"> radio 1
    <input type="radio" name="r" value="2"> radio 2
    <input type="radio" name="r" value="3"> radio 3
    <input type="radio" name="r" value="4"> radio 4
    <br>
    <input type="submit" value="OK">
</form>
<hr>
<span style="font-size: 32px; margin: 100px;">
<?php
  if ($_POST)
  {
     $t=$_POST['t'];
     echo "text: ".$t."<br>";
     echo "numer: "."<br>";
     echo "checkbox: "."<br>";
     echo "radio: "."<br>";
  }
?>
</span>