Posted by ramses on Wed 2nd May 16:54
download | new post
- if($numfotos > "0") {
- print '<form name="fotos" method="post" action="fotosload.php?enviar=ok" enctype="multipart/form-data">';
- <input type="hidden" name="id2" value="'.$id.'">';
- for ($i=1; $i<=$numfotos; $i++)
- print '<input type="Submit" name="enviar" value="Enviar fotos"></p></form>';
- }
- --- handler do formulário:
- if ($_GET['enviar']=="ok") {
- for ($i=1;$i<=$_POST['numfotos2'];$i++) {
- $sourcefile = $_POST["foto".$_POST['id2'].$i;
- $Filename = $ftp_Root . $sourcefile;
- if($status) {
- echo "<p align='center'>Foto $i enviada com sucesso!</p>";
- } else {
- echo "<p align='center'>O envio da foto $i falhou! Tente novamente</p>";
- }
- }
- }
- else
- {
- echo "<br><br><br><p align='center'>Erro, você não selecionou todas as fotos corretamente!</p>";
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.