【问题标题】:Execute link automatically in php在php中自动执行链接
【发布时间】:2011-07-13 10:12:14
【问题描述】:

我想以自动方式执行链接。例如:

我要页面:Page1.html Page2.php

Page2.php 包含一个必须单击才能访问该文件的链接。我想要做的是执行 Page1.html 表单,转到 Page2.php 并且不点击链接直接转到链接。

最好的问候

【问题讨论】:

    标签: php javascript html


    【解决方案1】:

    在 Page2.php 中做一个标头重定向

    header('Location: /path-to-your-file.txt');
    exit();
    

    【讨论】:

      猜你喜欢
      • 2010-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-17
      • 1970-01-01
      • 2021-04-10
      • 2016-02-01
      相关资源
      最近更新 更多