Xractz

secreto.php

Sep 4th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2.     // validasi form
  3.     $msg = "";
  4.     $eurl = "";
  5.    
  6.     // Cek form sudah di klik submit/belum
  7.     if(isset($_POST['submit'])){
  8.         $url = htmlspecialchars($_POST['url']);
  9.         $message = htmlspecialchars($_POST['message']);
  10.         $count = htmlspecialchars($_POST['count']);
  11.        
  12.         //cek site secreto atau bukan
  13.         $cek = strpos($url, "https://secreto.site/");
  14.         if ($cek !== false) {
  15.             echo "ada";
  16.         } else {
  17.             $eurl = '<p class="font-italic text-danger">* url ERROR</p>';
  18. }
  19.     }
  20. ?>
Add Comment
Please, Sign In to add comment