Saturday, April 16, 2016

Uploading Image File With PHP (Creating HTML Interface) : Part-01

<!doctype html>
<title>Uploading Image File with PHP</title>
 body{font-family: verdana}
 .phpcoding{width: 900px;margin: 0 auto; background: #ddd;}
 .headeroption, .footeroption{background: #444;color: #fff;
  text-align: center;padding: 20px;}
 .headeroption h2, .footeroption h2{margin: 0}
 .mainoption{min-height: 420px;padding: 20px}
 .myform{width: 500px;border: 1px solid  #999;margin: 0 auto; 
  padding: 10px 20px 20px;}
 input[type="submit"],input[type="file"]{cursor: pointer}
<div class="phpcoding">
 <section class="headeroption">
  <h2>Uploading Image File with PHP</h2>

 <section class="mainoption">
<?php include 'inc/header.php';?>
 <div class="myform">
  <form action="" method="post" enctype="multipart/form-data">
     <td>Select Image</td>
     <td><input type="file" name="image"/></td>
     <td><input type="submit" name="submit" value="Upload"/></td>
<?php include 'inc/footer.php';?>
<section class="footeroption">

How to practice tutorials…

  • Make a team with your friends (Member should be 4/5).
  • Start to practice one tutorial series along with them.
  • Don’t try to collect source code. Type the code while watching the tutorial.
  • If you face any problem, discuss with team members to solve quickly.