poradziłem sobie, zrobiłem coś takiego:
teraz mam problem z tym, że mogę zaznaczyć oba 'radio' tak jakby to były 'checkbox'y a oczywiście powinno przeskakiwać z jednego 'radio' na drugie i nie wiem jak to zrobić...
Kod:
if(isset($_POST['auto1']) && $_POST['auto1'] != ''){
$filename1 = $_POST['auto1'] . '.txt';
$auto1 = file_get_contents($filename1);
$auto1++;
$fileHandler=fopen("auto1.txt","w");
fputs($fileHandler,$auto1);
fclose($fileHandler);
}
elseif(isset($_POST['auto2']) && $_POST['auto2'] != ''){
$filename2 = $_POST['auto2'] . '.txt';
$auto2 = file_get_contents($filename2);
$auto2++;
$fileHandler=fopen("auto2.txt","w");
fputs($fileHandler,$auto2);
fclose($fileHandler);
}
teraz mam problem z tym, że mogę zaznaczyć oba 'radio' tak jakby to były 'checkbox'y a oczywiście powinno przeskakiwać z jednego 'radio' na drugie i nie wiem jak to zrobić...