THat doesn't seem to work well.
Here are the ACTUAL scripts I made. The form AND the processor:
form:
<?php
/* Connecting, selecting database */
$link = mysql_connect("localhost", "zingbats", "password")
or die("Could not connect");
mysql_select_db("tycooneden_com") or die("Could not select database");
$query = "SELECT * FROM clans WHERE clan_name = '$clan'";
$result = mysql_query($query) or die("Query failed");
$foo=mysql_fetch_array($result);
/* Start the clan defining */
$clan_url=$foo['clan_url'];
$clan_logo=$foo['clan_logo'];
$clan_admin=$foo['clan_admin'];
$clan_admin_email=$foo['clan_admin_email'];
$clan_forum=$foo['clan_forum'];
$clan_name=$foo['clan_name'];
$clan_logo_height=$foo['clan_logo_height'];
$clan_logo_width=$foo['clan_logo_width'];
mysql_close($link);
?>
<html>
<head>
<title>Edit clan</title>
</head>
<body>
<p><font face="Courier" size="1">Edit clan:</font></p>
<form method="POST" action="alter.php">
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="47%" id="AutoNumber1">
<tr>
<td width="28%"><font face="Courier" size="1">Clan Name</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_name" size="31" value="<?php echo ("$clan_name");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Clan URL</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_url" size="31" value="<?php echo ("$clan_url");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Clan Logo URL</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_logo" size="31" value="<?php echo ("$clan_logo");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Clan Admin name</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_admin" size="31" value="<?php echo ("$clan_admin");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Admin's email</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_admin_email" size="31" value="<?php echo ("$clan_admin_email");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Points (set as 0)</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_points" size="31" value="<?php echo ("$clan_points");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Clan Forum</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_forum" size="31" value="<?php echo ("$clan_forum");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Clan logo Height</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_logo_height" size="31" value="<?php echo ("$clan_logo_height");?>"></font></td>
</tr>
<tr>
<td width="28%"><font face="Courier" size="1">Clan logo Width</font></td>
<td width="72%"><font face="Courier" size="1">
<input type="text" name="clan_logo_width" size="31" value="<?php echo ("$clan_logo_width");?>"></font></td>
</tr>
</table>
</div>
<p><font size="1" face="Courier"><br>
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></font></p>
</form>
<p> </p>
</body>
</html>
That posts to:
<?php
$db = mysql_connect("localhost","zingbats","password");
mysql_select_db (tycooneden_com);
$query = "UPDATE clans SET clan_name='".$_POST['clan_name']."' , clan_url='".$_POST['clan_url']."' , clan_logo='".$_POST['clan_logo']."' , clan_admin='".$_POST['clan_admin']."', clan_admin_emain='".$_POST['clan_admin_email']."', clan_points='".$_POST['clan_points']."', clan_forum='".$_POST['clan_forum']."' , clan_logo_height='".$_POST['clan_logo_width']."' WHERE clan_name = '$clan_name'";
$result = mysql_query($query);
?>
congrats... clan <?php echo ("$clan_name");?> altered sucessfully