21 users online (0 members and 21 guests)  


  Results 1 to 1 of 1

Related

  1. Replies: 4
  2. Replies: 1
  3. Send array to another page. How?    Forum: Javascript Forum
    Replies: 0
  4. re-arrange array    Forum: CGI Perl Forum
    Replies: 1
  1. #1
    ramki067's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    22

    How to send an array to php?

    HI all,
    Sorry first of all bcoz i've a question which involves php also.I'm using the below code from php to javascript check function.

    Code:
    echo "<td><center><input name=\"sstreamname\" type=\"checkbox\" onclick=\"check()\"></center></td></tr></font></center></tr></font></center>";

    My point lies here in the below javacript code:

    Code:
    function check()
    {
    
    var frm=document.forms.stream_selection
    
    for(j=1;j<=1000;j++)
    {
      if(!frm[j].checked)
      {
          frm[0].checked=false
      }
    }
    
    }
    From the above code i need to check which checkbox number (that is i've a table containing many values correspondingly their are checkboxes and which one of those checkboxes are ticked). I need to get the number i.e., 1,3,4,5,etc checkboxes are ticked and this needs to be sent to another php page. How do i do it? Please help.

    Thanks,
    Ramki.
    Last edited by ramki067; 02-21-2008 at 06:20 AM.



Tags for this Thread