Accessing Javascript arrays in HTML. How?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ramki_Kumar
Posted On:   Monday, February 25, 2008 12:53 AM

Hi, I'm using the below javascript to access ParrStr values and send it to the next page. 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: and I'm using $_POST (PHP c   More>>

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

			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:

			
				






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.    <<Less

Re: Accessing Javascript arrays in HTML. How?

Posted By:   Firat_Tiryaki  
Posted On:   Monday, February 25, 2008 05:00 AM

Are you sure that your PHP is configured to use "$_POST" predefined variable?
About | Sitemap | Contact