Q:

PHP search engine redirects to another page

I have a personal movie database website.
I created a search engine where users can use one or more search criteria (i.e. movie length, title, genre, actors and so on...)
The search engine is working great but I would like to add a "Pick a random movie" feature so the script will pick a single title when we don't know what to watch.
Right now my search engine is called "search.php" and the form is pointing to "search-go.php".  The search results are listed in a table.  Now I would like to validate if the user checked the box "Random movie" in search-go.php, if it's the case, it would pick a random movie ID and then display the movie description (details.php) instead of showing the results table.
I don't know if i'm clear enough, let's simplify that:
search.php -> (user input search criteria) -> search-go.php lists the results in a table
search.php -> (user input search criteria AND checks "random movie" box) -> search-go.php runs a script to pick a random movie ID -> details.php is displaying the selected movie details.
Is it possible?
Thanks!

A:

header("Location: details.php?id=$id");

BTW,

my search engine is called "search.php" and the form is pointing to "search-go.php". 

This is wrong. It have to be the same "search.php"

