rem_user_form.php

来自「The Shift Log is a database entry and di」· PHP 代码 · 共 31 行

PHP
31
字号
<?PHP

			// Menu For the user Select
			$conn;
			$sql="SELECT username FROM users"; 
			$result=mysql_query($sql); 
			$options=""; 
			while ($row=mysql_fetch_array($result)) 
				{ 
				$user=$row["username"]; 
    			$options.="<OPTION VALUE=\"$user\">".$user; 
				} 
	?>
	<br />
	<!-- Delete User -->
	<form name="del_user" action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post">
	<table bgcolor="#CCCCCC" width="35%"  border="1">
  		<tr>
  			<td colspan="2" align="center"><p><strong>Remove User</strong></p>
		    </td>
    	</tr>
  		<tr>
    		<td width="45%">Select User:</td>
    		<td width="55%" align="center"><select name="del_user"><option value=0>Select One<?PHP echo $options;?></select></td>
  		</tr>
  		<tr>
    		<td align="center"><input type="reset"></td>
    		<td><input type="submit" name="delete_user" value="Submit" /></td>
  		</tr>
	</table>
	</form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?