Appending the results of some action to a page

Hi all,

I am following PHP & MYSQL NOVICE TO NINJA BY Kevin Yank.

I have a question with regards to the search functionality.

In the book the results of the search are appended to the page so that they are displayed underneath the search box.

How would you go about displaying the results on an entirely new page?

Just so I am clear, the results would be displayed on their own page without the search boxes.

Thanks for your time and help.

The action=“” element of your form should point to the new page (the search results form handler).

You can probably just cut/paste most of search handling code from the existing page, not that I am familiar with that book.


<form action="searchresults.php" method="POST">
...