Hallo Leute,
ich schreibe an einem kleinen Projekt und habe dort auch eine Seite wo man Bilder hochladen kann.
Das Problem ist, dass der Submit-Button nicht funktioniert bzw. nichts passiert wenn man ihn anklickt. Habe deshalb das ganze mal simpel ohne meine Page drumherum getestet und dort funktioniert er.
Hier mal ein Ausschnitt aus meinem upload_formular.php:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46:
| <?php if(isset($_SESSION['valid_user'])) { include('connect.php'); include('header.html'); echo('<div id="content">'); // Upload Formular echo('<h1>Upload...</h1'); echo('<form action="upload.php" method="post" enctype="multipart/form-data">'); echo('<p>Galeriename:</p>'); /*echo('<input type="Text" name="gallery" />');*/ echo('<input type="File" name="file1" />'); /* echo('<input type="File" name="file2" />'); echo('<input type="File" name="file3" />'); echo('<input type="File" name="file4" />'); echo('<input type="File" name="file5" />');*/ echo('<input type="submit" value="Bitte" >'); echo('</form>'); echo('</div>'); include('footer.html'); mysql_close($connection); } else { include('header.html'); echo('<div id="content">'); echo('<p>Du bist nicht eingeloggt</p>'); echo('</div>'); include('footer.html'); } ?> |
Kann es sein, dass das Formular sich irgendwie stört weil ich Sessions verwende? Das wäre aber auch komisch, ich komme nicht weiter. >.<
Hoffe ihr könnt mir helfen.
Schöne Grüße,
Dude566
Moderiert von Christian S.: Topic aus Delphi4PHP-Technologien verschoben am So 15.07.2012 um 13:07
Es gibt 10 Gruppen von Menschen: diejenigen, die das Binärsystem verstehen, und die anderen.