$_POST[$name], "url" => $_POST[$url]); //$line = $url . " = " . $_POST[$url] . " | " . $name . " = " . $_POST[$name] . "
\n"; //print($line); } file_put_contents($file, json_encode($json_arr, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); } $json = json_decode(file_get_contents($file), true); //print("
\n"); //print_r($json); //print("
\n"); foreach ($json as $i => $value) { $name = $value['name']; $url = $value['url']; $name_arr[$i] = $name; $url_arr[$i] = $url; //print($i . " - " . $name . " - " . $url); //print("
\n"); } $num_js = $i + 1; ?>

FabLab Radio - Channel Selection

\n"; echo "Channel $ind:
\n"; } ?>