Posted By

djenniex on 11/17/09


Tagged

form test


Versions (?)

Form Test


 / Published in: HTML
 

Testing HTML for the custom form_validation library

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  3. <title>Testing</title>
  4. </head>
  5. <?php form_open_multipart('form_test'); ?>
  6. <h5>Your File</h5>
  7. <div>
  8. <input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
  9. <input type="text" name="first_name" value="" />
  10. <input type="file" name="user_file" value="<?php echo $user_file; ?>" />
  11. <?php echo $user_file_error; ?>
  12. </div>
  13. <div>
  14. <input type="submit" name="upload-file" value="submit" />
  15. </div>
  16. </form>
  17. <h5>Form Validation Status:</h5>
  18. <p><?php echo $form_errors; ?></p>
  19.  
  20. <h5>$_FILE info</h5>
  21. <pre>
  22. <?php echo $file_info; ?>
  23. </pre>
  24.  
  25. <?php if ($upload_data){ ?>
  26. <h5>Upload Data</h5>
  27. <pre>
  28. <?php echo $upload_data; ?>
  29. </pre>
  30. <?php } ?>
  31.  
  32. <?php if ($success) echo 'File Uploaded'; ?>
  33. </body>
  34. </html>

Report this snippet  

You need to login to post a comment.