我尝试了多个代码,但是没有一个起作用。 我的代码是...
<!---site content begins---->
<form action='' method='POST'>
<div class="form-group">
Character - <input type="text" name="user" placeholder="Hashed Text"> <br>
<button type="submit" class="btn btn-primary" value="Done" name="sub">Decrypt</button>
</div>
</form>
<?php
error_reporting(0);
if (!isset($_POST['sub'])) {
}
else {
$string = $_POST['user'];
$response = file_get_contents("xxx.xxx.xxx/xxx.php?string=xxx".$string."");
if ($response === "") die('<br>Oops! Nothing found!');
?>
<br><br><br><br>
<h5>Decrypted MD5 of '<?php echo htmlspecialchars($string, ENT_QUOTES, 'UTF-8');?>' is</h5>
<texarea disabled="disabled">
<?php echo $response; ?> </textarea>
<br>
<br>
<br>
<?php
}
?>
我尝试了Show search results without reloading the page PHP Display result on same page
通过多次操作代码,但均无效果。