【问题标题】:Transfer EventID from 1 file to another file将 EventID 从一个文件传输到另一个文件
【发布时间】:2013-11-04 12:13:45
【问题描述】:

目前我正在制作一个事件日历,我希望用户在那里编辑事件:

示例:

事件.php http://i42.tinypic.com/sgsvth.png

编辑按钮动作转到edit.php

编辑.php http://i41.tinypic.com/2wrl26s.png

如何将 events.php 中的 EventID 包含到 edit.php 中,以便更新适当的事件。

【问题讨论】:

    标签: php sql edit


    【解决方案1】:

    在 URL 中使用 $_GET 值。

    edit.php?event_id=4
    

    像这样检索值:

    $id = $_GET['event_id'];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-30
      • 1970-01-01
      • 2013-02-04
      • 1970-01-01
      • 2013-07-04
      • 2017-07-27
      • 1970-01-01
      • 2012-08-16
      相关资源
      最近更新 更多