I am looking to have the results of a query to be posted on the same HTML page that data is entered into. I believe that this can be done with the isset() command, but I don't truly understand what it does and what is telling my page to go to a new php url to give me my table of data.
<html>
<body>
<form action="results.php" method="post">
<table border="0">
<td align="center"><head>Orders</head>
</tr>
<tr>
<td>Enter order number:</td>
<td align="center"><input type="text" name="enter" size="3" maxlength="3"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>
This is my current code. Does the
<form action="results.php" method="post">
Line tell the code to post to a new page? Does
if(isset($_POST))
go somewhere in the code in my html file or in my results.php file?