patrick1527
Mitglied
danke werde ich dann morgen testen jetzt wird erst mal gefeiert danke =)
wünsche einen Guten Rutsch
wünsche einen Guten Rutsch
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Hallo,
willst du, das die id nach absenden das forumlars eingetragen wird, oder soll sie geändert werden, sobald du die Select auswahl änderst, dann wäre es mit js zu realisieren, mit absenden kannst du es einfach mir php und Get realisieren.
mfg
<script type="text/js">
function TextRein () {
document.getElementById('textfeld').innerHTML=document.getElementById('dropdown').options.value; }
</script>
folgendes in das selecttag einfügen:
onChange="TextRein"
'<option value="' . $res1['id'] . '">' . $res1['begr'] . '</option>'
<?php include("db.php"); ?>
<?php
$id_feld = $_POST["Auswahl"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>onchange</title>
<script type="text/javascript">
function Go (select) {
var wert = select.options[select.options.selectedIndex].value;
if (wert == "leer") {
select.form.reset();
parent.frames["self"].focus();
return;
} else {
if (wert == "ende") {
top.location.href = parent.frames[1].location.href;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
else if (wert == "1") {
window.location.href="index.php";
}
else if (wert == "2") {
window.location.href="index.php";
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
else {
parent.frames["unten"].location.href = wert;
select.form.reset();
parent.frames["unten"].focus();
}
}
}
</script>
</head>
<body>
<form action="" method="POST">
<?php
$liste = '';
$sql1 = mysql_query("SELECT * FROM `katalog`");
$ergbenabf = mysql_query($sql1);
while ($res1 = mysql_fetch_array($ergbenabf))
{
?>
<p><select size="1" name="Auswahl" onchange="Go(this)" width="250">
<option value="leer" selected="selected">[ bitte auswählen! ]</option>
<option value="<?php echo "$row->id" ; ?>"><?php echo .$res1['begr']. ?></option>
<option value="1">Felgen</option>
</select></p>
<?php }
mysql_close;
?>
<input type="text" name="firma" value="<?php echo "$id_feld" ?>" />
</form>
</body>
</html>