15 lines
		
	
	
		
			357 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			357 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<select name="menu1"> 
							 | 
						||
| 
								 | 
							
								    <?php  
							 | 
						||
| 
								 | 
							
								$dir = "../Pic/Upload/";  
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Open a known directory, and proceed to read its contents  
							 | 
						||
| 
								 | 
							
								if (is_dir($dir)) {  
							 | 
						||
| 
								 | 
							
								   if ($dh = opendir($dir)) {  
							 | 
						||
| 
								 | 
							
								       while (($file = readdir($dh)) !== false) {  
							 | 
						||
| 
								 | 
							
								           print "<option value=\"{$file}\">{$file}</option>";  
							 | 
						||
| 
								 | 
							
								       }  
							 | 
						||
| 
								 | 
							
								       closedir($dh);  
							 | 
						||
| 
								 | 
							
								   }  
							 | 
						||
| 
								 | 
							
								}  
							 | 
						||
| 
								 | 
							
								?> 
							 | 
						||
| 
								 | 
							
								  </select>
							 |