I want the person to search the form, if the search is true that opens an existing page related to the search, what function can I use for this?
I want the person to search the form, if the search is true that opens an existing page related to the search, what function can I use for this?
You set the value of the $ search variable according to the condition you want, and the header () function does the redirect.
<?php
if ($busca == true) {
header("Location: pagina_busca.php");
}
?>
I hope I have helped, I did not understand the problem clearly.