Hi, I have this code that removes unnecessary code from a file and I'm wanting to request the url associated with the uniqid. So instead of my select box containing the dir to the files, it will request the url by the uniqid.
$h = fopen("cache/form.txt", "rt");
while (!feof($h)) {
$title = trim(fgets($h));
$url = trim(fgets($h));
$doesnt_start_with_numbers = preg_replace('#^\d+#', '', $title);
// output
$up_id = uniqid();
$print = print "<option id='$up_id' value='$url'>$doesnt_start_with_numbers</option>\n";
}
fclose($h);
Any help on this would be great.