Jump to content

problems updating userlevels as admin or level 9


wezze

Recommended Posts

ive got a login script that works  great  only the update lvl of users doesnt work

if i do it directly in myphp it works but not with the php script.

 

constants.php

define("ADMIN_NAME", "admin");
define("MOD_NAME", "Mod");
define("MEMBER_NAME", "Member");
define("USER_NAME", "User");
define("GUEST_NAME", "Guest");
define("ADMIN_LEVEL", 9);
define("MOD_LEVEL", 7);
define("MEMBER_LEVEL", 5);
define("USER_LEVEL",  2);
define("GUEST_LEVEL", 0);

 

admin.php

Username:<br>
<input type="text" name="upduser" maxlength="30" value="<? echo $form->value("upduser"); ?>">
</td>
<td>
Level:<br>
<select name="updlevel">
<option value="1">1
<option value="1">2
<option value="1">5
<option value="1">7
<option value="9">9
</select>
</td>
<td>
<br>
<input type="hidden" name="subupdlevel" value="1">
<input type="submit" value="Update Level">
</td></tr>
</form>

 

im struggling on this for 2 weeks now so any help would be great :)

 

thx

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.