<?php
function generujPrzyciski()
{
  $kategorie = array
  (
    "1" => "JavaScript",
    "2" => "PHP",
    "3" => "AJAX"
  );
  foreach($kategorie as $id => $kategoria){
    echo "<span onclick=\"wyslijDane($id)\" style=\"cursor:pointer;\">";
    echo "<input type=\"radio\" name=\"kategoria\" value=\"$id\" id=\"radio$id\">";
    echo "$kategoria </span>";
  }
}
?>