I’m used to working with C# and ASP.NET which automatically allows one to display database results immediately on the same page from which they were requested.
I am, however, now using PHP which I haven’t coded in in years. I have the results popping up in a separate page because the form tag’s ‘action’ option is set to that specific PHP page. I need these results to display, though, in the same page that I’m clicking the button. Any ideas?
Set the ‘action’ tag to the current page, and move the POST request handling logic to that current page.