Does anyone have a solution on how to handle "dynamic" href's when register_globals = off? By "dynamic", I mean the following:
for ($i=0; $i<$num_rows; $i++) {
print "<tr><td width=60><a href=detail.php?hostname=$name_array[$i]>$name_array[$i]</a></td>";
}
In my actual code, I have another loop inside this one (I left it out of the example for brevity). The code reads the values in the arrays and prints everything in a table. Everything links to the detail.php file. If the user clicks one of the links, then the details regarding that hostname are displayed in detail.php (this is a network monitor program, so detail is specifics such as ping & TCP response times, disk usage etc). I have a variable number of hosts and services, so need to use the dynamically allocated array.
My problem:
The only way I can effectively see to do this is to set register_globals = on. I don't want to do this, at either the global, virtual name or .htaccess level. Using session_register on the $name_array[$i] only succeeds to always pass the last value of the array (as expected). Can anyone think of a way that my current narrow brain channel is missing?
Thx.