mainTwo.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"
>
<html lang="en">
<head>
<title>Setlist</title>
</head>
<body>
<?php require 'provsetlist.php'; ?>
<? include("combo.php"); ?>
<script type="text/javascript" src="crlist.js"> </script>
</body>
</html>
组合.php
<?php
echo '<select id="tunelist" name="tunelist" onchange="Window.location=provsetlist.php">';
$link = mysql_connect('localhost', 'setlist', 'music');
$query = mysql_query("SHOW DATABASES");
while ($row = mysql_fetch_assoc($query)) {
echo '<option value="'.$row['Database'].'">'.$row['Database'].'</option>';
}
echo '</Select>'
?>
这会引发 ReferenceError: provsetlist is not defined
我查看了一堆示例和教程,但无法弄清楚这一点。我假设我需要定义 provsetlist.php 但在哪里以及如何定义?