Skip to content

Instantly share code, notes, and snippets.

View abdualrhman1410's full-sized avatar

abdualrhman.ali abdualrhman1410

View GitHub Profile
<form action="<?$_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
<?
for($i=1;$i<=5;$i++){
echo "<input type='file' name='file_".$i."' /> <br>";
}
?>
<input type="submit" name="upload" />
</form>
<?
<?
include 'connection.php';
$username= $_POST['username'];
$query=mysql_query("SELECT username from users where username='$username'");
$num= mysql_num_rows($query);
if($_POST['username']){
if($num != 0)
echo $i=1;
else{
echo $i=0;