![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
|
|
Themen-Optionen | Ansicht |
|
|
#2 |
|
Inventar
![]() Registriert seit: 13.06.2001
Beiträge: 1.830
|
Wieso machst du's nicht mit POST???
<script language="JavaScript"> function check(was){ //Code return was; } </script> <form method="POST" action="file.php"> <input type="text" name="textfeld"> <input type="button" value="abschicken" onClick="this.textfeld.value=check(this.textfeld.v alue);this.submit()"> </form> oder: onClick="check();" und function check(){ var was = document.forms[0].textfeld; was.value=was.value + "was dranhängen"; document.forms[0].submit(); } Bin mir nicht ganz sicher, ob's stimmt. Du solltest prüfen ob man mit this.textfeld auf's Textfeld zugreifen kann, oder man's mit document.forms[0].textfeld machen muss. Könnte auch sein daß es nicht .value sondern .text ist. Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona) Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing. \"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra) |
|
|
|
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|