Login   Register  
PHP Classes
elePHPant
Icontem

File: form.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Abdelkader Elkalidi  >  Safely Upload  >  form.html  >  Download  
File: form.html
Role: Example script
Content type: text/plain
Description: From example
Class: Safely Upload
Validate and process uploaded files
Author: By
Last change:
Date: 5 years ago
Size: 1,794 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>SafelyUpload PHP Class</title>
    <style type="text/css">
        body{
            margin:0;font-size:15px;font-family:georgia;
        }
        #form{
            padding:20px;margin:20px auto;width:500px;border:3px solid #CCC;
        }
        #form h1{
            font-size:17px;font-style:italic;font-weight:normal;padding:0;margin:0 0 10px 0;
        }
        #form p{
            margin:0 0 20px 0;color:#555;
        }
        #form div.field{
            font-weight:bold;padding:5px;
        }
        #form div.field input.submit{
            padding:5px;
        }
    </style>
</head>
<body>
    <form id="form" action="upload.php" method="post" enctype="multipart/form-data">
        <h1><a href="http://updel.com/safelyupload/" title="SafelyUpload PHP Class">SafelyUpload PHP Class</a></h1>
        <p>Upload pictures by recreating them using GD library, this manip is more safer than using  <a title="move_uploaded_file" href="http://www.php.net/move_uploaded_file" target="_blank">move_uploaded_file</a></p>
        <div class="field">Picture : <br /><input type="file" name="image" /></div>
        <div class="field"><input type="submit" name="submit" value="Upload" class="submit" /></div>
    </form>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7468172-7");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>