Jump to content

NathanLedet

Members
  • Posts

    102
  • Joined

  • Last visited

    Never

Posts posted by NathanLedet

  1. Hi, I have a form with check boxes.  When the form is submitted, i use the following code to retrieve the data:

     

    $files = $_POST['files'];
    foreach ($files as $f => $value){
    echo "$f <br />"; 
    
    

     

    so everything that was checked will display as it should, but now I need to display that information in more than one location...and to me, it doesn't make sense to use a foreach statement every time I want to display that information...

     

    is it possible to use that foreach statement one time, and then store the results in an array that I can just plop anywhere I need?

     

    thanks!!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.