我有一个文件夹"尝试"在htdocs下,我将一个php文件连接到html但不包含php文件。我的代码有问题吗?
<?php
include 'init.inc.php';
?>
html和php文件位于&#34;尝试&#34;夹。原谅我,我只是个新手!
答案 0 :(得分:0)
index.html的代码:
+---------------+---------------+-----------+
| Spreadsheet A | Spreadsheet B | Identical |
+---------------+---------------+-----------+
| Student1 | Student2 | FALSE |
| Student1 | Student3 | TRUE |
| Student2 | Student3 | FALSE |
+---------------+---------------+-----------+
init.inc.php的代码:
{=AND(INDIRECT(CONCAT("'[",A2,".xlsx]Sheet1'!A1:Z1000"))=INDIRECT(CONCAT("'[",B2,".xlsx]Sheet1'!A1:Z1000")))}
mail.inc.php的代码:
<?php
include('init.inc.php');
if(isset($POST['name'], $_FILES['files'])){
mail_file('grace.cuteens@gmail.com', 'grace.cuteens@gmail.com', 'A File
Upload', '', $_FILES['file']);
}
?>
<html>
<head> BACK UP AND SEND
<title> BACK UP DATABASE AND SEND TO GMAIL PAGE </title>
</head>
<body>
<br>
<br>
<img src="gslc.jpg" alt="GSLC" style="width:304px;height:228px;">
<div>
<form action = "" method = "post" enctype = "multupart/form-
data">
<p>
<label for="name">Name</label>
<input type="text" name="name" id="name" />
</p>
<p>
<label for="file">File</label>
<input type="file" name="file" id="file" />
</p>
<p>
<input type="submit" value="Email File" />
</p>
</form>
</div>
</body>
</html>
我的问题是包含php文件似乎不正确的代码。所有文件都在&#34;尝试&#34;在htdocs下的文件夹,我已经运行了Apache