Hallo,
so hab das nun mal so gemacht. Aber nun meine Frage noch die finde ich die ID raus, dass die dann auch die richtige übergeben wird? Wisst Ihr was ich meine?
Hier mal die edit_daten.php
<?php
//Konfigurations Datei einbinden
include "config.php";
if(!empty($_POST))
{
$sql = "INSERT UPDATE name
(
name,
)
VALUES
(
'" . addslashes($_POST["name"]) . "',
)
";
mysql_query($sql) OR die(mysql_error());
header("Location: http://www.meineseiteimnetz.de");
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Namen</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Stil5 {font-size: 14px; font-weight: bold; }
-->
</style>
</head>
<body>
<form name="form1" method="post" action="edit_daten.php">
<table width="80%" border="0">
<tr>
<td width="23%" height="29"><span class="Stil5">Name:</span></td>
<td width="77%"><input name="name" type="text" id="name" value="<?php echo $_data['name'] ?>" size="30"></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Submit" value="eintragen"></td>
</tr>
</table>
</form>
</body>
</html>
Gruß Nina