I am working with PHP, and want to be able to loop through, and pass variables through the url as arrays, but I can't get it to work...the code is buried underneath in an extremely long complicated file, but I'll try to explain:
I use the url_encode function, but it still does not like it:
$url = "content.php?";
while ($row = mysql_fetch_array($qr_ret)) {
$url .= "title" . urlencode("[$i]") . "=";
$url .= urlencode("$row[title]");
if($row[info]!="") {
$url .= "&content" . urlencode("[$i]") . "=";
$url .= urlencode("$row[info]");
}
$i++;
}
return "<a href=\"javascript:popUp('$url')\">$day</a>";
THEN IN THE RECIEVING FILE CONTENT.PHP:
for($i=0;$i++;$i<$db_total) {
echo "<p><b>$title[$i]</b></p>";
if ($time[$i]!="") {echo "<p>$time[$i]";}
if ($content[$i]!="") {echo "<p>$content[$i]";}
if ($contact[$i]!="") {echo "<p>$contact[$i]";}
}