PHP - how do i upload more than one image at a time
Asked By Olusegun A.
28-Aug-10 12:45 PM

please i have this more that i want to use in uploading 5 images at a time, but i don't know how to upload the files into my upload folder;
<form action="<?php echo $_SESSION['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table width="300" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td align="center"><label>
<input type="file" name="file" />
</label></td>
</tr>
<tr>
<td align="center"><label>
<input type="file" name="file2" />
</label></td>
</tr>
<tr>
<td align="center"><label>
<input type="file" name="file3" />
</label></td>
</tr>
<tr>
<td align="center"><label>
<input type="file" name="file4" />
</label></td>
</tr>
<tr>
<td align="center"><p>
<label>
<input type="file" name="file5" />
</label>
</p>
</td>
</tr>
</table>
<p align="center">
<label>
<input type="submit" name="Submit" value="Upload" />
</label>
</p>
</form>
i tried using this move to folder code;
$file_name = ($_FILES["file"]["name"]);
$random_digit=rand(00000,99999);
$new_file_name=$random_digit . $imageResized;
if (($_FILES["file"]["name"]!="") && file_exists("../upload/" . $new_file_name))
{
echo "<span class='style3'>Please reupload the Picture.</span>";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"../upload/" . $new_file_name);
$path2= "../upload/" . $new_file_name;
but someone advised i put it in an array but i don't know how to go about that. please ow can i do this or which other less stress way can i do this.
regards
Web Star replied to Olusegun A.
that to the second statement it becomes null Can somebody help me on this? using (Microsoft.Win32.RegistryKey sqlServerKey = Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, <My Machine name> ).OpenSubKey(@"SOFTWARE \ Microsoft \ Microsoft SQL Server \ <Instance Name of the sql server> \ MSSQLServer \ CurrentVersion")) using (Microsoft.Win32.RegistryKey sqlServerKey Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, <My Machine name> ).OpenSubKey(@"SOFTWARE \ Microsoft \ Microsoft SQL Server \ <Instance Name of
2011 19:10:25.0731] [0] * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * [11 / 17 / 2011 19:10:25.0731] [0] Starting Microsoft Exchange Server 2010 Setup [11 / 17 / 2011 19:10:25.0731] [0] * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * [11 / 17 / 2011 Central Time (US & Canada). [11 / 17 / 2011 19:10:25.0731] [0] Operating System version: Microsoft Windows NT 6.1.7601 Service Pack 1. [11 / 17 / 2011 19:10:25.0731 17 / 2011 19:10:27.0135] [0] Exchange configuration container for the organization is 'CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27.0135] [0] Exchange organization container for the organization is 'CN = First Organization, CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27 EXCHANGE, CN = Servers, CN = Exchange Administrative Group (FYDIBOHF23SPDLT), CN = Administrative Groups, CN = First Organization, CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27 EXCHANGE, CN = Servers, CN = Exchange Administrative Group (FYDIBOHF23SPDLT), CN = Administrative Groups, CN = First Organization, CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27 15. [11 / 17 / 2011 19:11:17.0415] [0] Exchange Installation Directory : 'F: \ Program Files \ Microsoft \ Exchange Server \ V14'. [11 / 17 / 2011 19:11:17.0446] [0] Applying default role selection 17 / 2011 19:11:17.0477] [0] Setup will run from path 'F: \ Program Files \ Microsoft \ Exchange Server \ V14 \ '. [11 / 17 / 2011 19:11:17.0493] [0] InstallModeDataHandler has 0 DataHandlers
2011 19:10:25.0731] [0] * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * [11 / 17 / 2011 19:10:25.0731] [0] Starting Microsoft Exchange Server 2010 Setup [11 / 17 / 2011 19:10:25.0731] [0] * ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** * [11 / 17 / 2011 Central Time (US & Canada). [11 / 17 / 2011 19:10:25.0731] [0] Operating System version: Microsoft Windows NT 6.1.7601 Service Pack 1. [11 / 17 / 2011 19:10:25.0731 17 / 2011 19:10:27.0135] [0] Exchange configuration container for the organization is 'CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27.0135] [0] Exchange organization container for the organization is 'CN = First Organization, CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27 EXCHANGE, CN = Servers, CN = Exchange Administrative Group (FYDIBOHF23SPDLT), CN = Administrative Groups, CN = First Organization, CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27 EXCHANGE, CN = Servers, CN = Exchange Administrative Group (FYDIBOHF23SPDLT), CN = Administrative Groups, CN = First Organization, CN = Microsoft Exchange, CN = Services, CN = Configuration, DC = mr238, DC = org'. [11 / 17 / 2011 19:10:27 15. [11 / 17 / 2011 19:11:17.0415] [0] Exchange Installation Directory : 'F: \ Program Files \ Microsoft \ Exchange Server \ V14'. [11 / 17 / 2011 19:11:17.0446] [0] Applying default role selection 17 / 2011 19:11:17.0477] [0] Setup will run from path 'F: \ Program Files \ Microsoft \ Exchange Server \ V14 \ '. [11 / 17 / 2011 19:11:17.0493] [0] InstallModeDataHandler has 0 DataHandlers
When was the first version of Microsoft SQL Server released? This explains the first version of SQL Server release from Microsoft. Microsoft released its first version of SQL Server in the year of 1988 . This version was developed jointly by Microsoft and Sybase for the OS / 2 platform. Related FAQs What is Denali? This explains about Stored Procedures and functions in SQL Server 2008 R2. When was the first version of Microsoft SQL Server released? ( 130 Views ) View Santhosh N's FAQs Create New Account keywords: Microsoft, SQL Server, first, version, 1988, Sybase, release description: This explains the first version of SQL Server release from Microsoft.
Next Microsoft’s Windows OS Release in 2012? This briefs you about the next probable Windows OS (Windows 8) release from Microsoft. Microsoft might release its next Windows OS with the name Windows 8 could be released sometime the main functionalities that are handled by WWW service in IIS 6 and prior versions. Microsoft .Net Framework introduced for developers This explains when .Net Framework introduced to the developers and operating systems This explains and lists four major operating systems used in the mobiles Next Microsoft’s Windows OS Release in 2012? ( 242 Views ) View Santhosh N's FAQs Create New Account keywords: Microsoft, Windows 8, OS, release, 2012, APP STORE, performance, sleep, mode description: This briefs you about the next probable Windows OS (Windows 8) release from Microsoft.