I have a form on one page and when it is submitted the next page looks for a variable and based on the value it executes different parts of the code.
$frm_search_type = $_GET['frm_search_type'];
if ($frm_search_type = 1) {
// do this part
}
if ($frm_search_type = 2) {
// do this part
}
I can echo the value and it will show the correct value (either 1 or 2), but for some reason it executes both parts. Any ideas?