Hi,
oups - das hätte ich vielleicht auch noch sagen sollen. :-)
Die Befehle werden von dieser Datei gesendet:
<pre>
<?php
$host="localhost";
$username="web1";
$password="XXX";
$db_name="wiki";
$tbl_name="user";
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$user_id=$_GET['user_id'];
$sql="SELECT * FROM $tbl_name WHERE user_id='$user_id'";
$result=mysql_query($sql);
$rows=mysql_fetch_array($result);
?>
<p><span class="willkommen">Benutzerdaten ändern - WikiControl 1.0 Beta </span></p>
<form name="form1" method="post" action="update_ac.php"
<table width="602" border="0" cellpadding="3" cellspacing="1">
<tr>
<td class="arial"><table width="664" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="18" background="button.png" bgcolor="#ffffff" class="arial_weiss">ID</td>
<td width="182" background="button.png" bgcolor="#ffffff" class="arial_weiss">Benutzername</td>
<td width="183" background="button.png" bgcolor="#ffffff" class="arial_weiss">Echter Name</td>
<td width="302" background="button.png" bgcolor="#ffffff" class="arial_weiss">Email-Adresse</td>
</tr>
<tr>
<td bgcolor="#ffffff" class="arial" ><input name="user_id" type="text" id="user_id" value="<? echo $rows['user_id']; ?>" size="3">
</td>
<td bgcolor="#ffffff" class="arial" ><input name="user_name" type="text" id="user_name" value="<? echo $rows['user_name']; ?>" size="30">
</td>
<td bgcolor="#ffffff" class="arial" ><input name="user_name" type="text" id="user_name" value="<? echo $rows['user_real_name']; ?>" size="30">
</td>
<td bgcolor="#ffffff" ><em><span class="status_ok"><input name="user_email" type="text" id="user_email" value="<? echo $rows['user_email']; ?>" size="40">
</span></em></td>
</tr>
</table>
<br />
<input type="submit" name="Submit" value="Daten ändern">
<input name="user_id" type="hidden" id="user_id" value="<? echo $rows['user_id']; ?>" />
<a href="index.php" class="link">zurück zur Übersicht </a>
</form>
<?
mysql_close();
?>
</pre>
MfG, Item