这个很基础,可以使用post,或者get请求
GET
<?php
$mw=$_GET['mw'];
$jmw=md5($mw);
echo $jmw;
?>
POST
<?php
$mw=$_POST['mw'];
$jmw=md5($mw);
echo $jmw;
?>
访问格式如下
GET
请求地址:http://www.xxx.com/xxx.php
格式1:http://www.xxx.com/xxx.php?要加密的文本
格式2:http://www.xxx.com/xxx.php?text=要加密的文本
POST
<form name=alipayment action=xxx.php method=post target="_blank">
<input name="text">
<button type="submit">
</from>