Formular mit "Speichern" Button absenden

chitti

Grünschnabel
Hi leute... bin neue sowohl in diesen forum als auch in javascript und php welt und desswegen brauch ich eure Hilfe.

ich fange jetz an und erkläre euch mein problem anhand bilder:

http://imageshack.us/f/850/1sz7.jpg/
Im obigen bild wähle ich eine Model-Datei und dann wähle ich eine XML-Datei aus und wenn ich XML- Datei ausgewählt hab wird Aktions-Klasse,Produkt-Klasse, Ressourcen-Klasse, IT-System usw. automatisch geladen und das sieht dann so aus:
http://imageshack.us/f/801/d1w6.jpg/

und jetzt wenn ich dann eine andere XML- Datei auswähle, wird das Formular AUTOMATISCH abgeschickt und dann wird halt "automatisch gespeicherte information angezeigt. das sieht ihr hier:
http://imageshack.us/f/31/pqqa.jpg/
http://imageshack.us/f/41/u5gm.jpg/

Und genau das will ich nicht...ich will das nur wenn ich KONFIGURATION SPEICHERN anklicke soll das formular abgeschickt werden.


Javascript/HTML:

HTML:
<script language="JavaScript">
  alert(unescape("Die %C4nderungen wurden gespeichert."));
     </script>
<div>
 <center>
  <h3>Gespeicherte Konfiguration</h3>
        <u>Modellspezifische Einstellungen:</u>
  <table width='400' border='0' cellspacing='10' >
  <tr>
  <td>Modell-Datei:</td>
           <td><b><?php echo substr($posted_model_file,27);?></b></td>
  </tr>
   <tr>
             <td>XML-Datei:</td>
  <td><b><?php echo substr($posted_xml_file,12);?></b></td>
                  </tr>
                  <tr>
          <td>Aktions-Klasse:</td>
        <td><b><?php echo $posted_model_action_class;?></b></td>
                  </tr>
                  <tr>
       <td>Auftrags-Klasse:</td>
  <td><b><?php echo $posted_model_order_class;?></b></td>
                  </tr>
                  <tr>
    <td>Produkt-Klasse:</td>
    <td><b><?php echo $posted_model_product_class;?></b></td>
                  </tr>
                  <tr>
          <td>Ressourcen-Klasse:</td>
  <td><b><?php echo $posted_model_ressource_class;?></b></td>
                  </tr>
                  <tr>
    <td>IT-System:</td>
  <td><b><?php echo $posted_model_it_system;?></b></td>
                  </tr>
                  <tr>
  <td>Organisation:</td>
     <td><b><?php echo $posted_model_organisation;?></b></td>
                  </tr>
                  <tr>
  <td>Dokumentation:</td>
       <td><b><?php echo $posted_model_documentation;?></b></td>
                  </tr>
                  <tr>
      <td>Maschine:</td>
  <td><b><?php echo $posted_model_machine;?></b></td>
                  </tr>
          </table>
        </center>
      </div>


HTML/PHP CODE:
PHP:
<div id="formular">
      <h3>Neue Konfiguration</h3>
      <form accept-charset="utf-8" name="Form" action="<?php echo $_SERVER["PHP_SELF"]."?".$_SERVER['QUERY_STRING']; ?>" method="post">
        <p><u>Modellspezifische Einstellungen:</u></p>
        <table width="407" border="0" cellspacing="10">
          <tr>
            <td width="132">Modell-Datei</td>
            <td width="241">
              <label>
                <select name="Modell-Datei" id="Modell-Datei" onChange="document.Form.submit();">
                
                
                  <option></option>
                  <?php
                  $excluded_types=array("sh2","xml", "xls", "xlsx");
                  $included_types_model=array("sg2","shx");
                  foreach ($filearray_modell=filearray("../../data/moogo_viewer/model",$excluded_types, $included_types_model) as $file_model){
                    $file_model=utf8_encode($file_model);
                    if ($file_model==$posted_model) {
                      echo "<option value=\"$file_model\" selected=\"selected\">$file_model</option>";
                    }
                    else{
                      echo "<option value=\"$file_model\">$file_model</option>";
                    }
                  }
                  ?>
                </select> 
              </label>
            </td>
          </tr>
          <tr>
            <td width="132">XML-Dokument</td>
            <td width="241">
              <label>
                <select name="XML-Datei" id="XML-Datei" onchange="document.Form.submit();">
                  <option></option>
                  <?php
                  $included_types_xml=array("xml");
                  foreach ($filearray_xml=filearray("../../data/xml",$empty_array) as $file_xml){
                    $file_xml=utf8_encode($file_xml);
                    if ($file_xml==$posted_xml) {
                      echo "<option value=\"$file_xml\" selected=\"selected\">$file_xml</option>";
                    }
                    else{
                      echo "<option value=\"$file_xml\">$file_xml</option>";
                    }
                  }
                  ?>

Ich weiß nicht was ich hier ändern soll sodass die änderungen nicht automatisch abschickt werden
ich hoffe ihr versteht mein problem und könnt mich helfen. :)
Danke schon mal im vorraus
 

Neue Beiträge

Zurück