this code is giving notices
<?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"))
			&& ($_FILES["book"]["size"] < 200000000000000))
			 {
				if ($_FILES["book"]["error"] > 0)
				 {
					 echo "Return Code: " . $_FILES["book"]["error"] . "<br />";
				 }
				else
				{
				 "Upload: " . $_FILES["book"]["name"] . "<br />";
				 "Type: " . $_FILES["book"]["type"] . "<br />";
				 "Size: " . ($_FILES["book"]["size"] / 1000000000) . " Kb<br />";
				 "Temp file: " . $_FILES["book"]["tmp_name"] . "<br />";
	
					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);

		}	
?>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Excuse Terminator</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
<script type="text/javascript">
	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*/
		});
	};
</script>

<script type="text/javascript" language="javascript" >
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;
	}
	</script>
<!-- TinyMCE -->
<script type="text/javascript" src="js/jscripts/tiny_mce.js" language="javascript"></script>
<script type="text/javascript" language="javascript">
	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"
		}
	});
</script>
<!-- /TinyMCE -->
<style type="text/css">
<!--
.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;
}
-->
</style>
</head>

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

 <table width="100%" border="0" class="text">
   
   <tr>
     <td colspan="5" align="center"><table width="100%" border="0" cellspacing="2" cellpadding="2">
       
       <tr>
         <td width="20%" class="row1" style="font-family:'Courier New', Courier, monospace';">Upload Book:</td>
         <td><input type="file" name="book" id="book" class="box" /></td>
       </tr>
       <tr>
         <td class="row2" style="font-family:'Courier New', Courier, monospace';">Expire Date:</td>
         <td> <input type="text" size="12" id="inputField" name="inputField"/></td>
       </tr>
       <tr>
         <td>&nbsp;</td>
         <td><input type="submit" id="uploadbookbtn" name="uploadbookbtn" value="Upload"  class="box" /> 
           <input type="submit" id="cancel" name="cancel" value="cancel" class="box" /></td>
       </tr>
         
     </table>
      </td>
   </tr>
  	
 
 </table>
 <p align="center">&nbsp;</p>
</form>
</body></html>






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

  	

 

this code is giving notices
===

<?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"))
			&& ($_FILES["book"]["size"] < 200000000000000))
			 {
				if ($_FILES["book"]["error"] > 0)
				 {
					 echo "Return Code: " . $_FILES["book"]["error"] . "<br />";
				 }
				else
				{
				 "Upload: " . $_FILES["book"]["name"] . "<br />";
				 "Type: " . $_FILES["book"]["type"] . "<br />";
				 "Size: " . ($_FILES["book"]["size"] / 1000000000) . " Kb<br />";
				 "Temp file: " . $_FILES["book"]["tmp_name"] . "<br />";
	
					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);

		}	
?>

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Excuse Terminator</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
<script type="text/javascript">
	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*/
		});
	};
</script>

<script type="text/javascript" language="javascript" >
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;
	}
	</script>
<!-- TinyMCE -->
<script type="text/javascript" src="js/jscripts/tiny_mce.js" language="javascript"></script>
<script type="text/javascript" language="javascript">
	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"
		}
	});
</script>
<!-- /TinyMCE -->
<style type="text/css">
<!--
.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;
}
-->
</style>
</head>

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

 <table width="100%" border="0" class="text">
   
   <tr>
     <td colspan="5" align="center"><table width="100%" border="0" cellspacing="2" cellpadding="2">
       
       <tr>
         <td width="20%" class="row1" style="font-family:'Courier New', Courier, monospace';">Upload Book:</td>
         <td><input type="file" name="book" id="book" class="box" /></td>
       </tr>
       <tr>
         <td class="row2" style="font-family:'Courier New', Courier, monospace';">Expire Date:</td>
         <td> <input type="text" size="12" id="inputField" name="inputField"/></td>
       </tr>
       <tr>
         <td>&nbsp;</td>
         <td><input type="submit" id="uploadbookbtn" name="uploadbookbtn" value="Upload"  class="box" /> 
           <input type="submit" id="cancel" name="cancel" value="cancel" class="box" /></td>
       </tr>
         
     </table>
      </td>
   </tr>
  	
 
 </table>
 <p align="center">&nbsp;</p>
</form>
</body></html>






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

  	

 
