sorry, will irgendwie nicht funken:
PHP-Code:
<html>
<head>
<title>Copy</title>
<script type="text/javascript">
function kopiere()
{
document.copyform.feld1.value = document.copyform.feld2.value;
}
</script>
</head>
<body>
<form name="copyform" method="POST" action="index2.php">
<input type="text" name="feld1" size="20">
<br><input type="button" onclick="kopiere()" value="copy">
<br><input type="text" name="feld2" size="20">
<br><input type="submit" value="Abschicken" name="B1">
</form>
</body>
</html>
Passt die Positionierung des
JS? Wenn ich auf den Button klicke, dann wird der Wert von Textfeld 1 gelöscht und nichts passiert.
Sorry, dass ich dir die Zeit raube, aber das wäre echt super, wenn das funktionieren würde!
Danke! Lukas