<!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=iso-8859-1" />
<title>Image thumbnails</title>
</head>
<body>
<?php
include('uploadclass.php');
if (isset($_POST['Submit']) && ($_POST['Submit'] == 'Submit')) {
$images = new get_thumbnail;
$images ->thisimage = 'manish';
$images-> create_thumb();
echo "Thumbnails has been created.";
} else {
?>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<input name="manish" type="file" id="manish" />
<input type="submit" name="Submit" value="Submit" />
</form>
<?php
}
?>
</body>
</html>
|