Ok...I don't know how to integrate this into my code that I have.
CODE
<form name="reg_company" method="post" action="edit_user.php">
<table width="100%" border="0" align="left" cellpadding="2" cellspacing="0">
<tr>
<td colspan="2" align="left">
<b>Contact Information</b><br><hr align="left" width="175">
</td>
</tr>
<tr>
<td width="30%">First Name</td>
<td width="70%"><input name="firstname" type="text" value="<?=$firstname;?>"></td>
</tr>
<tr>
<td width="30%">Last Name</font> </td>
<td width="70%"><input name="lastname" type="text" value="<?=$lastname;?>"></td>
</tr>
<tr>
<td width="30%">Email</font></td>
<td width="70%"><input name="email" type="text" value="<?=$email;?>"></td>
</tr>
<tr>
<td colspan="2" align="left">
<br><b>Technical Information</b><hr align="left" width="175">
</td>
</tr>
<tr>
<td width="30%">Company Name</font> </td>
<td width="70%"><input name="company" type="text" value="<?=$company;?>"></td>
</tr>
<tr>
<td width="30%">Control Panel</td>
<td width="70%"><input name="cpanel" type="text" value="<?=$cpanel;?>"></td>
</tr>
<tr>
<td width="30%">OverRide Member ID</td>
<td width="70%"><input name="member_id" type="text" value="<?=$member_id;?>"></td>
</tr>
<tr>
<td colspan="2" align="left">
CODE
<br><b>Security Information</b><hr align="left" width="175">
</td>
</tr>
<tr>
<td width="30%">Username</font></td>
<td width="70%"><input name="usrname" type="text" value="<?=$usrname;?>"></td>
</tr>
<tr>
<td width="30%">Access Level</font> </td>
<td width="70%">
<select name="usr_lvl">
<option value="" selected="selected">Please Select Level</option>
<option <?php if ($usr_lvl==1)?>selected="selected" value="1" >Level 1 [Limited User]</option>
<option <?php if ($usr_lvl==2)?>selected="selected" value="2" >Level 2 [Normal User]</option>
<option <?php if ($usr_lvl==3)?>selected="selected" value="3" >Level 3 [Company Admin]</option>
<option <?php if ($usr_lvl==4)?>selected="selected" value="4" >Level 4 [Limited SU]</option>
<option <?php if ($usr_lvl==5)?>selected="selected" value="5" >Level 5 [Super User]</option>
</select>
</td>
</tr>
<tr>
<td width="170"> </td>
<td width="70%"><input type="submit" name="Submit" value="Modify User"></td>
</tr>
</table>
</form>
That is was my original code and now trying to integrate this new code it confuses the heck out of me...so...here is my attempt how did I do:
CODE
<form name="reg_company" method="post" action="edit_user.php">
<table width="100%" border="0" align="left" cellpadding="2" cellspacing="0">
<tr>
<td colspan="2" align="left">
<b>Contact Information</b><br><hr align="left" width="175">
</td>
</tr>
<tr>
<td width="30%">First Name</td>
<td width="70%"><input name="firstname" type="text" value="<?=$firstname;?>"></td>
</tr>
<tr>
<td width="30%">Last Name</font> </td>
<td width="70%"><input name="lastname" type="text" value="<?=$lastname;?>"></td>
</tr>
<tr>
<td width="30%">Email</font></td>
<td width="70%"><input name="email" type="text" value="<?=$email;?>"></td>
</tr>
<tr>
<td colspan="2" align="left">
<br><b>Technical Information</b><hr align="left" width="175">
</td>
</tr>
<tr>
<td width="30%">Company Name</font> </td>
<td width="70%"><input name="company" type="text" value="<?=$company;?>"></td>
</tr>
<tr>
<td width="30%">Control Panel</td>
<td width="70%"><input name="cpanel" type="text" value="<?=$cpanel;?>"></td>
</tr>
<tr>
<td width="30%">OverRide Member ID</td>
<td width="70%"><input name="member_id" type="text" value="<?=$member_id;?>"></td>
</tr>
<tr>
<td colspan="2" align="left">
<br><b>Security Information</b><hr align="left" width="175">
</td>
</tr>
<tr>
<td width="30%">Username</font></td>
<td width="70%"><input name="usrname" type="text" value="<?=$usrname;?>"></td>
</tr>
<tr>
<td width="30%">Access Level</font> </td>
<td width="70%">
<!--<input name="usr_lvl" type="text" value="<?//=$usr_lvl;?>">-->
<?php
$level = array ("none", "Limited User","Normal User", "Company Admin","Limited SU", "Super User");
list($member_id, $usr_lvl) = mysql_fetch_array($result, MYSQL_NUM);
?>
<select name="member" onchange="this.form.submit();">
<?php
for ( $i = 1; $i <= $5; $i += 1) {
unset($ch1);
if ($usr_lvl== $i) {
$ch1="selected=\"selected\"";
}
?>
<option name="member" value="<?php print $i; ?>" <?php print $ch1; ?> ><?php echo $level[$i]; ?>
<?php
}
?>
</select>
</option>
</td>
</tr>
<tr>
<td width="170"> </td>
<td width="70%"><input type="submit" name="Submit" value="Modify User"></td>
</tr>
</table>
</form>
I basically copied it in there...yes I know but I don't really understand it which is missing the point of copying this code that you guys made for me...so first did my copy job come close because it is giving me errors and second could you give me a small explanation =)