[Phpmyadmin-devel] Problem in getting values from the url
Zahra Naeem
xara.fast at gmail.com
Fri Jul 24 13:47:55 CEST 2009
Hi all,
I am using the following piece of code in my java script file to
retrieve the ids of checked check boxes from a div named "list".
I am appending the arrays of ids in the url using the "location.href =
location.href+"?array=true&0="+course;" etc. I can see the array in the
address bar but using $REQUEST or $GET does not help me fetch the values.
Please have a look at my code and help me as soon as possible. This problem
has already taken a lot of my time.
Thanx in advance.
function ApplySelectedChanges()
{
var Checked_tables_ids = new Array();
var div = document.getElementById("list");
var input_fields = div.getElementsByTagName('input');
var x = input_fields.length;
var i;
var append_string;
for (i=0; i<x; i++) {
if (input_fields[i].type == 'checkbox') {
if (i == 0) {
append_string = "?abc="+1234+"&";
} else {
append_string += "&";
}
Checked_tables_ids[i] = input_fields[i].id;
append_string += i+"="+input_fields[i].id;
}
}
location.href += append_string;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20090724/f5cc61a1/attachment.html>
More information about the Developers
mailing list