Danke für die antworten, allerdings habe ich noch eine frage,
Wie Ich weiß jetzt wie ich mehrere Formulare mit mehreren Abschick Buttons benutze aber wie geht das mit bloß einem?
Beiträge von Mars25
-
-
Ja sehe es jetzt auch mein Fehler.
sry hatte darauf leider nicht geachtet... -
ich hab einfach Java geschrieben weil ich ein bissen schreib faul bin, in Wirklichkeit bin weiß ich das das natürlich etwas anderes ist. Und danke darauf habe ich garnet geachtet. danke nochmals.
-
Der java code
Code
Alles anzeigen<script language="JavaScript">; function pruefe(){ if(document.getElementById("select-feld").vaule == 1){ var tapreis= 40; alert(+tapreis) ;} else if(document.getElementById("select-feld").vaule == 2){ var tapreis= 60; alert(+tapreis);} else if(document.getElementById("select-feld").vaule == 3){ var tapreis= 75; alert (+tapreis);} else if(document.getElementById("select-feld").vaule == 4){ var taprei=80; alert (+tapreis);} else if(document.getElementById("select-feld").vaule == 5){ var tapreis=85; alert(+tapreis);} else if(document.getElementById("select-feld").vaule == 6){ var tapreis=135 alert (+tapreis)} else if(document.getElementById("select-feld").vaule == 7){ var tapreis=150 alert (+tapreis)} else if(document.getElementById("select-feld").vaule == 8){ var tapreis=170 alert (+tapreis)} else if(document.getElementById("select-feld").vaule == 9){ var tapreis=180 alert (+tapreis)} else if(document.getElementById("select-feld").vaule == 10){ var tapreis=195 alert (+tapreis)} } </script
Und das formular
Code
Alles anzeigen<form name="recht"> Preisstufe (infos <a href="Preise und Thermine2012.htm" target="_blank">hier</a>):<br /> <select name="preis" size="1"> <option value="1" id="select-feld">1</option> <option value="2" id="select-feld">2</option> <option value="3" id="select-feld">3</option> <option value="4" id="select-feld">4</option> <option value="5" id="select-feld">5</option> <option value="6" id="select-feld">6</option> <option value="7" id="select-feld">7</option> <option value="8" id="select-feld">8</option> <option value="9" id="select-feld">9</option> <option value="10" id="select-feld">10</option> </select> <input type="submit" value="Ausrechnen" onClick="pruefe(preis.vaule)"/> </form>
-
natürlich das habe ich ja auch gemacht.
-
Das geht auch nicht die Seite zeigt weiter hin eine Reaktion...
kann es sein das in deinem code irgendein Fehler steckt?Lg Martin
-
Hi erstma
Ich habe vor das variaben durch eine Formular gesetzt werden und dann wieder ausgegeben, allerdings geht es nicht. Wenn ich dann auf absenden drücken geht es nicht und es geschieht einfach nichts. Hier bin ich mit meinem Latein am endewisst ihr weiter?
Hier mein Formular
Code
Alles anzeigen<form name="rech"> <select name="preis" size="1"> <option value="1" selected="selected">1</option> <option value="2" selected="selected">2</option> <option value="3" selected="selected">3</option> <option value="4" selected="selected">4</option> <option value="5" selected="selected">5</option> <option value="6" selected="selected">6</option> <option value="7" selected="selected">7</option> <option value="8" selected="selected">8</option> <option value="9" selected="selected">9</option> <option value="10" selected="selected">10</option> </select> <input type=button value="Ausrechnen" onClick="pruefe(preis.vaule);"/>
und hier die Java anwendung(im Head teil der Seite)
Code
Alles anzeigen<script language="JavaScript">; function pruefe(){; if(window.document.recht.preis.vaule=="1") { var tapreis= 40; alert(+tapreis) ; } else if(window.document.rech.preis.vaule=="2"){ var tapreis= 60; alert(+tapreis); } else if(window.document.rech.preis.vaule=="3") { var tapreis= 75; alert (+tapreis); } else if(window.document.rech.preis.vaule=="4") { var taprei=80; alert (+tapreis); } else if(window.document.rech.preis.vaule=="5") { var tapreis=85; alert(+tapreis); } else if(window.document.rech.preis.vaule=="6") { var tapreis=135 alert (+tapreis) } else if(window.document.rech.preis.vaule=="7") { var tapreis=150 alert (+tapreis) } else if(window.document.rech.preis.vaule=="8") { var tapreis=170 alert (+tapreis) } else if(window.document.rech.preis.vaule=="9") { var tapreis=180 alert (+tapreis) } else if(window.document.rech.preis.vaule=="10") { var tapreis=195 alert (+tapreis) } } </script>
danke schoneinmall für mögliche hilfe
-
Halo
Ich habe auf meiner Seite extra eine Spallte eingebaut in der news angezeigt werden sollen, allerdings will ich, wen ich die news aktualisieren will, nicht jede Seite ändern müssen. Ich weis das es dafür extra einen PHP code gibt ich kenne ihn aber nicht genau könnt ihr mir helfen
?