session_start(); include('library.php'); require('abrirdb.php'); if(isset($_GET['type']) || isset($_GET['tipo'])) if(isset($_GET['type'])) $_POST['type'] = $_GET['type']; else $_POST['type'] = $_GET['tipo']; else $_POST['type'] = 0; if($_POST['type'] == 0){ $_POST['marca'] = ''; $_POST['modelo'] = ''; $_POST['refaccion'] = ''; } if(isset($_GET['marca'])){ $_POST['marca'] = $_GET['marca']; } if(isset($_GET['modelo'])){ $_POST['modelo'] = $_GET['modelo']; } if(isset($_GET['refaccion'])){ $_POST['refaccion'] = $_GET['refaccion']; } ?>