this code is giving notices
<pre><code>&lt;?php
require_once '../../library/config.php';
if(isset($_REQUEST['uploadbookbtn']))
    {
        $bookname=$_FILES['book'];
        $expdate=$_REQUEST['inputField'];

        if ((($_FILES["book"]["type"] == "image/gif")
        || ($_FILES["book"]["type"] == "image/jpeg")
        || ($_FILES["book"]["type"] == "image/pjpeg"))
        &amp;&amp; ($_FILES["book"]["size"] &lt; 200000000000000))
         {
            if ($_FILES["book"]["error"] &gt; 0)
             {
                 echo "Return Code: " . $_FILES["book"]["error"] . "&lt;br /&gt;";
             }
            else
            {
             "Upload: " . $_FILES["book"]["name"] . "&lt;br /&gt;";
             "Type: " . $_FILES["book"]["type"] . "&lt;br /&gt;";
             "Size: " . ($_FILES["book"]["size"] / 1000000000) . " Kb&lt;br /&gt;";
             "Temp file: " . $_FILES["book"]["tmp_name"] . "&lt;br /&gt;";

                if (file_exists("uploadedbooks/" . $_FILES["book"]["name"]))
                  {
                  $_FILES["book"]["name"] . " already exists. ";
                  }
                else
                  {
                  move_uploaded_file($_FILES["book"]["tmp_name"],
                  "uploadedbooks/" . $_FILES["book"]["name"]);
                  "Stored in: " . "uploadedbooks/" . $_FILES["book"]["name"];
                  }
                }
            }
            else
              {
              echo "Invalid file";
              }

    $sql="INSERT INTO `tbl_ebook` (`book_name`, `expire_date`) VALUES ('$bookname', '$expdate')";
    mysql_query($sql);

    }   
?&gt;
</code></pre>



<pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Excuse Terminator&lt;/title&gt;
&lt;link href="css/stylesheet.css" rel="stylesheet" type="text/css" /&gt;
&lt;link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" /&gt;
&lt;script type="text/javascript" src="jsDatePick.min.1.3.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    window.onload = function(){
        new JsDatePick({
            useMode:2,
            target:"inputField",
            dateFormat:"%d-%M-%Y"
            /*selectedDate:{                This is an example of what the full configuration offers.
                day:5,                      For full documentation about these settings please see the full version of the code.
                month:9,
                year:2006
            },
            yearsRange:[1978,2020],
            limitToToday:false,
            cellColorScheme:"beige",
            dateFormat:"%m-%d-%Y",
            imgPath:"img/",
            weekStartDay:1*/
        });
    };
&lt;/script&gt;

&lt;script type="text/javascript" language="javascript" &gt;
function ValidateForm()
{
    var mailsubject=document.getElementById('mailsubject').value;
    if(document.getElementById('mailsubject').value=="")
    {
        document.getElementById('mailsubject').style.border='1px solid #FF6633';
        alert('Please Enter Mail Subject'); 
        document.getElementById('mailsubject').focus();
        return false;
    }
        return true;
    }
    &lt;/script&gt;
&lt;!-- TinyMCE --&gt;
&lt;script type="text/javascript" src="js/jscripts/tiny_mce.js" language="javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript"&gt;
    tinyMCE.init({
        // General options
        mode : "textareas",
        theme : "advanced",
        plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

        // Theme options
        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
        theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,

        // Example content CSS (should be your site CSS)
        content_css : "css/content.css",

        // Drop lists for link/image/media/template dialogs
        template_external_list_url : "lists/template_list.js",
        external_link_list_url : "lists/link_list.js",
        external_image_list_url : "lists/image_list.js",
        media_external_list_url : "lists/media_list.js",

        // Style formats
        style_formats : [
            {title : 'Bold text', inline : 'b'},
            {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
            {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
            {title : 'Example 1', inline : 'span', classes : 'example1'},
            {title : 'Example 2', inline : 'span', classes : 'example2'},
            {title : 'Table styles'},
            {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
        ],

        // Replace values for the template plugin
        template_replace_values : {
            username : "Some User",
            staffid : "991234"
        }
    });
&lt;/script&gt;
&lt;!-- /TinyMCE --&gt;
&lt;style type="text/css"&gt;
&lt;!--
.style2 {   color: #CC0000;
    font-weight: bold;
}
.style3 {color: #CC0000; font-weight: bold; font-size: 18px; }
.style4 {color: #CC0000}
.style5 {   color: #01a2dd;
    font-weight: bold;
    font-size: 14px;
}
.style6 {
    text-align: center;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;form action="" method="post" name="ebook" id="ebook"&gt;
 &lt;table width="100%" border="0" cellspacing="1" cellpadding="2" class="entryTable"&gt;
  &lt;tr id="entryTableHeader"&gt; 
   &lt;td&gt;E-Book&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/table&gt;

 &lt;table width="100%" border="0" class="text"&gt;

   &lt;tr&gt;
     &lt;td colspan="5" align="center"&gt;&lt;table width="100%" border="0" cellspacing="2" cellpadding="2"&gt;

       &lt;tr&gt;
         &lt;td width="20%" class="row1" style="font-family:'Courier New', Courier, monospace';"&gt;Upload Book:&lt;/td&gt;
         &lt;td&gt;&lt;input type="file" name="book" id="book" class="box" /&gt;&lt;/td&gt;
       &lt;/tr&gt;
       &lt;tr&gt;
         &lt;td class="row2" style="font-family:'Courier New', Courier, monospace';"&gt;Expire Date:&lt;/td&gt;
         &lt;td&gt; &lt;input type="text" size="12" id="inputField" name="inputField"/&gt;&lt;/td&gt;
       &lt;/tr&gt;
       &lt;tr&gt;
         &lt;td&gt;&amp;nbsp;&lt;/td&gt;
         &lt;td&gt;&lt;input type="submit" id="uploadbookbtn" name="uploadbookbtn" value="Upload"  class="box" /&gt; 
           &lt;input type="submit" id="cancel" name="cancel" value="cancel" class="box" /&gt;&lt;/td&gt;
       &lt;/tr&gt;

     &lt;/table&gt;
      &lt;/td&gt;
   &lt;/tr&gt;


 &lt;/table&gt;
 &lt;p align="center"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/form&gt;
&lt;/body&gt;&lt;/html&gt;
</code></pre>



<pre><code>Notice: Undefined index: book in C:\wamp\www\excuseterminator-shoppingcart\admin\ebook\upload.php on line 6

Notice: Undefined index: book in C:\wamp\www\excuseterminator-shoppingcart\admin\ebook\upload.php on line 9

Notice: Undefined index: book in C:\wamp\www\excuseterminator-shoppingcart\admin\ebook\upload.php on line 10

Notice: Undefined index: book in C:\wamp\www\excuseterminator-shoppingcart\admin\ebook\upload.php on line 11
</code></pre>
