You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
523 B
19 lines
523 B
<?php
|
|
ob_start();
|
|
include "header.php";
|
|
|
|
$id = isset($_GET['id']) ? $_GET['id'] : die('ERROR: Record ID not found.');
|
|
|
|
$db_query = "select path from form_list where id = '$id'";
|
|
$res = mysqli_query($link, $db_query);
|
|
if ($row = mysqli_fetch_row($res)) {
|
|
header("Location: /wms/".$row[0]);
|
|
exit;
|
|
} else {
|
|
echo "<script type ='text/JavaScript'>";
|
|
echo "alert('檔案下載失敗!');";
|
|
echo "</script>";
|
|
header("Refresh:0; url=forms-index.php?function_name=forms&".$token_link);
|
|
}
|
|
ob_end_flush();
|
|
?>
|