PHP search engine redirects to another page -


i have personal movie database website. created search engine users can use 1 or more search criteria (i.e. movie length, title, genre, actors , on...)

the search engine working great add "pick random movie" feature script pick single title when don't know watch.

right search engine called "search.php" , form pointing "search-go.php". search results listed in table. validate if user checked box "random movie" in search-go.php, if it's case, pick random movie id , display movie description (details.php) instead of showing 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 results in table

search.php -> (user input search criteria , checks "random movie" box) -> search-go.php runs script pick random movie id -> details.php displaying selected movie details.

is possible? thanks!

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

btw,

my search engine called "search.php" , form pointing "search-go.php".

this wrong. have same "search.php"


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -