• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Problem im Firefox

Status
Für weitere Antworten geschlossen.

OS299

Neues Mitglied
Hallo ich habe folgendes Problem ich kann den unteren Button, welcher ein Script aufruft, nicht erfolgreich im Firefox starten, im Opera IE usw. klappt das. An was kann das liegen?
PHP:
<?
require("functions.php");
?>

<html>
<head><title>Store binary data into SQL Database</title>
<style>
  body {
      text-align: center;
  }
  div {
      border-style: thin solid blue;
      margin: auto;
  }
  Table { 
      margin: auto;   
  }
</style>
<script src="selectuser.js"> 
  
</script>
</head>
<body>

<?php
// code that will be executed if the form has been submitted:

if ($_POST["submit"]) {
    // connect to the database
    // (you may have to adjust the hostname,username or password)
    $form_description = $_POST["form_description"];
    $data = addslashes(fread(fopen($_FILES["form_data"]["tmp_name"], "r"), filesize($_FILES["form_data"]["tmp_name"])));
    $db = new mysqli('localhost','root','','bilder');  
    $SqlQuery = ("INSERT INTO pic (bild) ".
        "VALUES ('$data')");
    $result = $db->query($SqlQuery);
    $id = $db->insert_id;
    print "<p>This file has the following Database ID: <b>$id</b>";
   $db->close();

}

    // else show the form to submit new data:
?>

    <form method="post" action="<?php echo $PHP_SELF; ?>" enctype="multipart/form-data">
    File Description:<br>
    <input type="text" name="form_description"  size="40">
    <input type="hidden" name="MAX_FILE_SIZE" value="1000000">
    <br>File to upload/store in database:<br>
    <input type="file" name="form_data"  size="40">
    <p><input type="submit" name="submit" value="submit">
    </form>  
    
    <div id="innerDiv">
    <table >
    </table>
    </div>
    <div>
    <button onclick="showNextPage()">Auswahl anzeigen !</button>  
    </div> 
</body>
</html>
 
Werbung:
Das ist wohl keine HTML-Frage, wird doch eine JavaScript-Funktion aufgerufen, die uns Lesern hier zudem unbekannt ist, weil Du den Code nicht mitgepostet hast.
Schau in die Fehlerkonsole, was an JS-Fehlern ausgegeben wird.
Und schalte JavaScript an, ohne geht es auch nicht :-)
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben