33 users online (1 members and 32 guests)  


  Results 1 to 2 of 2

Related

  1. Send array to another page. How?    Forum: Javascript Forum
    Replies: 0
  2. How to send an array to php?    Forum: Javascript Forum
    Replies: 0
  3. How to pass an array through a form?    Forum: CGI Perl Forum
    Replies: 1
  4. Replies: 4
  1. #1
    ramki067's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2007
    Posts
    22

    How to Send array from one form to another?

    Hi,
    I've an array $streams[] and i need to send this array to next page on submit button click. I'm trying to capture this array in the next page but with no luck, need help in this matter. Please


    Code:
    <form name="stream_selection" enctype="multipart/form-data" method="post" action="selected_streams.php">
    Code:
    <input name=streams type=hidden value=$streams[]>
    Receiving the array in the next page as follows:

    Code:
    $stream[]=$_REQUEST['streams'];
    for($i=0;$i<1000;$i++)
    {
       echo "$stream[i]<br>";
      
    }
    A blank page is displayed!


    Thanks,
    Ramki.

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: How to Send array from one form to another?

    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread