qiaoyurensheng
qiaoyurensheng
2017-06-29 15:12

这是怎么回事PHP提交后无法保存到.txt文件中

  • input
  • fopen
  • php

![图片说明](https://img-ask.csdn.net/upload/201706/29/1498748972_59760.png)图片说明

mail.php

 <?php
$str=$_GET[[content];
$myfile = fopen("mail.txt", "w") or die("Unable to open file!");
fwrite($myfile, content);
fclose($myfile);
?>

提交邮箱可第一时间获取资讯

                      <form action="mail.php" method="post">
                        <input type="email" name="email" id="email" required="required" placeholder="Email" />
                        <label>
                        <input type="submit" value="提交" />
                        <div class="clear"></div>
                          </label>
                      </form>
                    </div>

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答