多くのコードを書くのを忘れているようです...まず、最初に $_POST['Submit'] をチェックすることをお勧めします。 URL(ブラウザのアドレスバーに直接書き込むか、前のページからのリンクをたどる)またはフォームボタンをクリックして:
<?php
if (isset($_POST['Submit'])){
// someone submitted the form
// so, here you must check if results are available according to the submitted data
//here all the necessary code to open a database connection, perform a mysql query and save the results in $row_Recordset1
//then you can check if the query returned no results
if (empty($row_Recordset1) {
echo "No results found";
}
else {
// the code to print results here
}
}
else {
// no one submitted the form
// so, here you should put the code to draw your html form
}
?>