<input type="reset" value="Reset" class="ch-btn ch-btn-small"> </p> </form> <?php ini_set('display_errors', 1); ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); error_reporting(E_ALL); //echo phpinfo(); include 'lib/mercadopago.php'; if (isset($_REQUEST['clientid'])) { $user = $_REQUEST['clientid']; $pass = $_REQUEST['clientsecret']; $mp = new MP($user, $pass); $response = $mp->get_auth(); if ($response == '200') { $_SESSION['user'] = $user; $_SESSION['pass'] = $pass; header("Location: menu.php"); } else { echo "<br><br><div class='ch-box-error'><h3>Login Incorreto</h3><p></p></div>"; } } ?> </fieldset> </div> </div> </div>