Re: Get name of the file but no upload the file

  •  10-24-2012, 9:19 AM

    Re: Get name of the file but no upload the file

    i have find a solution but not with phpuploader

    If someone want :

     

     

     

     <html>
    <head>
    <script type="application/javascript" src="jQuery_1-7.js"></script>
    <script type="application/javascript">$(document).ready( function() {
          $('button.adder').click( function() {
                number = ($(this).parent().children().size() - 1) / 2;
                $(this).parent().append($(this).attr('data-prototype').replace('__number__', number));
          });
    });</script>
    </head>
    <body>


    <?php










    $passage = isset($_POST['passage']) ? $_POST['passage']: 0;
    if ($passage == 0)
    {
           echo "
                Maintenez <kbd>Ctrl</kbd> en sélectionnant les images pour en prendre plusieurs à la fois<!--<![endif]-->
            <form name ='formulaire' method ='POST'>
                   <input type='file' name='files[]' multiple='multiple' /><br />
                    <input type = 'hidden' name = 'passage' value = '1' />
                    <button type = 'submit'>OK </button>
            </form>";
    }
    else
    {      
                echo"<table border='0'>";
                      foreach($_POST['files'] as $NameFiles)
                      {
                            echo "
                                        <TR>
                                              <TD  style='background-image: url(resources/mod.gif);' width='300'>".$NameFiles."</TD>
                                              <TD style='background-image: url(resources/mod.gif);' width='1'><img src='resources/uploadok.png' /></TD>
                                        </TR>
                                  ";
                      }
                echo"</table>";
    }


    ?>
    </html>

View Complete Thread