Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kmpd

    (@kmpd)

    Would I replace GET with POST in this portion of the code?

      $view = 'list';
    
    			//If the option form is being submitted, this function runs
    			if($_GET['img_hidden'] == 'Y') {
    				//Replaces the value of each input with the user-defined value
                    $price_prev = $_GET['price_prev'];
                    $price = $_GET['price'];
                    if($price_prev == $price) {
                        $price = '';
                    }
                    $cap_prev = $_GET['cap_prev'];
    				$cap_rate = $_GET['cap_rate'];
                    if($cap_prev == $cap_rate) {
                        $cap_rate = '';
                    }
    				$squery = $_GET['squery'];
                    if($cap_rate == '' && $price == '') {
                        $view = $_GET['view'];
                    } else {
        				$view = 'list';
                    }
    			} 
    		?>
Viewing 1 replies (of 1 total)