You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
729 B
36 lines
729 B
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="zh-cn" />
|
|
<meta charset="utf-8" />
|
|
<title>String2Number</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div style="text-align: center">
|
|
<h2>String2Number Ver 0.1</h2>
|
|
|
|
<?php
|
|
$plain_text = "";
|
|
$secret_code = "";
|
|
if(isset($_POST["plain_text"]) && strlen($_POST["plain_text"]) > 0) {
|
|
$plain_text = $_POST["plain_text"];
|
|
$secret_code = shell_exec("./str2num $plain_text");
|
|
}
|
|
?>
|
|
|
|
<form method="POST">
|
|
Plain text: <input type="text" name="plain_text" maxlength="8" value="<?php echo $plain_text; ?>" />
|
|
<input type="submit" value="转换" />
|
|
<hr />
|
|
Secret code: <input type="text" value="<?php echo $secret_code; ?>" disabled />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|