Currently I've got a PHP page query.php
with a form that presents a list of countries with a submit button:
Countries
[] nation1
[] nation2
[] nation3
[] nation4
SUBMIT
they're checkboxes to the same array, and the form references the page <form method="post" action="query.php">
When the submit button is pressed, a query is run on the dbase that pulls up a list of actors based upon the nations selected, and creates a new checkbox list below the first one:
Countries
[] nation1
[] nation2
[] nation3
[] nation4
SUBMIT
You have chosen countries ____.
Actors
[] guy1
[] guy2
[] guy3
[] etc
SUBMIT
Currently, that second form calls a new PHP file <form method="post" action="movie-query.php">
which searches the dbase based on the actors selected and returns all movies that contain them.
I was wondering if there's any way to keep this all on one page? I can't figure out how to get the search results to display within query.php
when the second submit option is used. If I set the second form to <form method="post" action="query.php">
all it does is reset query.php
to its original state of:
Countries
[] nation1
[] nation2
[] nation3
[] nation4
SUBMIT
Rather than something akin to:
Countries
[] nation1
[] nation2
[] nation3
[] nation4
SUBMIT
You have chosen countries ____.
Actors
[] guy1
[] guy2
[] guy3
[] etc
SUBMIT
You have chosen actors _____.
Movie Results
1. movietitle
2. movietitle
3. movietitle
4. etc.
all appearing on the same page.
Any ideas? Thank you.