Member Login
Members SAVE at top national stores and restaurants

$100
Cash Back Program

10-50%
National Retail Stores

10-50%
National Regional Restaurants

10-50%
Local Dining, Shopping and Recreation
As a member of MyTripSavers you and your family can save hundreds of dollars a month at over 300,000 national and local merchants!
jQuery(function($) {
$('#login_button').click(function(e) {
console.log('login button clicked')
$('#pum-60').show();
e.preventDefault(); // Prevents the default form submission action
// Selects input fields by their 'name' attribute
var userName = $('input[name="lrd_user_name"]').val();
var userPass = $('input[name="lrd_user_pass"]').val();
$.ajax({
url: "/scripts/auth.php", // Using a relative path
type: "POST",
data: {
username: userName,
password: userPass,
action: 'login',
t: Date.now()
},
success: function(response) {
// Check if the response contains a URL starting with "https://"
var match = response.match(/https:\/\/\S+/);
if (match) {
window.location.href = match[0]; // Redirect to the matched URL
} else {
// Output the entire response if no URL is found
$('#login_error_messages').html(response);
$('#pum-60').popmake('close');
}
},
error: function(xhr, status, error) {
// Handle errors here
console.error("Error:", status, error);
}
});
});
});
setTimeout(function() {
$('form').keypress(function(event) {
if (event.keyCode === 13) { // 13 is the Enter key
event.preventDefault(); // Prevent the default action (form submission)
$('#login_button').click();
}
});
}, 1000); // 1000 milliseconds = 1 second