ramki067
02-22-2008, 09:29 AM
HI,
I have a javascript array which i need to pass to another page and access this array using PHP code. I've written the javascript code but need your help on this to send the array to another page. Am i doing anything wrong?Any ideas?
function check()
{
var frm=document.forms.stream_selection
sel_num = new Array()
for(j=1;j<=1000;j++)
{
if(!frm[j].checked)
{
frm[0].checked=false
}
else
{
sel_num =frm[j].value
Parr = new Array();
for(i=0 ;i<sel_num.length ;i++){
Parr.push(escape(sel_num[i].innerHTML));
}
location.href="selected_streams.php?arr="+Parr
}
var par = new Array();
par = get_paragraphs();
var parString = par.toString();
}
}
Thanks,
Ramki.
I have a javascript array which i need to pass to another page and access this array using PHP code. I've written the javascript code but need your help on this to send the array to another page. Am i doing anything wrong?Any ideas?
function check()
{
var frm=document.forms.stream_selection
sel_num = new Array()
for(j=1;j<=1000;j++)
{
if(!frm[j].checked)
{
frm[0].checked=false
}
else
{
sel_num =frm[j].value
Parr = new Array();
for(i=0 ;i<sel_num.length ;i++){
Parr.push(escape(sel_num[i].innerHTML));
}
location.href="selected_streams.php?arr="+Parr
}
var par = new Array();
par = get_paragraphs();
var parString = par.toString();
}
}
Thanks,
Ramki.