It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Accessing Javascript arrays in HTML.

Accessing Javascript arrays in HTML.

Postby ramki067 on Mon Feb 25, 2008 5:34 am

Hi,
I'm using the below javascript to access ParrStr values and send it to the next page.

Code: Select all
function check()
{
var frm=document.forms.stream_selection
sel_num = new Array();
Parr = new Array();
for(j=1;j<1000;j++)
{
   if(frm[j] != null)
   {
     if(!frm[j].checked)
     {
         frm[0].checked=false;
     }
     else
     {
      Parr.push(j);
      ParrStr=Parr.join(',');
     }
    }
 
}
document.getrElementById('ParrStr').value=ParrStr;

}



I'm using the form tag and accessing the ParrStr as below:

Code: Select all
<form name="stream_selection" enctype="multipart/form-data" method="post" action="selected_streams.php">

<input type="hidden" name="ParrStr" id="ParrStr"/>




and I'm using $_POST (PHP code) in the next page to access this ParrStr values but i'm not access it. Please help.

Thanks,
Ramki.[/code]
ramki067
 
Posts: 4
Joined: Wed Oct 31, 2007 3:30 am

Who is online

Users browsing this forum: No registered users and 3 guests