Hi.
I have made a script called "clan admin" and i have made all the submit scripts but now im up to edit/delete.
Im trying to do the users editor for a start and it writes to a flat file like
username:password:level:email
how would i go about editing this?
would i open it then set them all to variables then call them into a form?
then how would i go about security.
I tried <?php die('piss off'); ?> but it didn't seem to work it just came up with error on line one so i need a different way. Can i include it into the index.php maybe? but can it be as a text file in index.php if i do:
($id == "users") {
username:password:level:email
}
if ($id == "edituser") {
$post_data = "id?=users";
$data = fopen($post_data, "r");
$post = list('$user,$pass,$level,$email');
fclose($data);
echo "<form name="edituser" action="id?=edituser" method="POST">
<table border="0" cellpadding="0" cellspacing="2" width="232">
<tr>
<td width="77">Username:</td>
<td><input type="text" name="$user" size="24"></td>
</tr>
<tr>
<td width="77">Password:</td>
<td><input type="password" name="$pass" size="24"></td>
</tr>
<tr>
<td width="77">Email:</td>
<td><input type="text" name="$email" size="24"></td>
</tr>
<tr>
<td width="77">Status:</td>
<td><select name="$level" size="1">
<option value="guest">Guest</option>
<option value="poster">Poster</option>
<option value="admin">Admin</option>
</select></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="submit" value="Add User"><input type="reset" name="resetbutton" value="Reset"></div>
</td>
</tr>
</table>
</form>";
and then make an action page.
Would that work or would i have to do something different?