Hey everyone,
I’m a bit over my head. I’m helping my wife out by trying to fix a form she has on her website.
The form is located here… https://www.rentalhomeexchange.net/rental_app.php
The problem is that when the form is submitted I receive the email but I get no content in the fields. Not sure what Im doing wrong.
<script src="https://js.accepton.com/scripts/accepton.js"
class="accepton-button"
data-public-key="pkey_b26f46454279474f"
data-redirect-uri="https://www.rentalhomeexchange.net/thankyou.php"
data-token="txn_88da52ba365ced31a090ad4d603dff5b"
data-additional-fields=""
data-customer-email=""
data-target="accepton-form-100">
</script>
</script>
</div>
<div id="accepton-form-75" class="accepton-form-common">
<script src="https://js.accepton.com/scripts/accepton.js"
class="accepton-button"
data-public-key="pkey_b26f46454279474f"
data-redirect-uri="https://www.rentalhomeexchange.net/thankyou.php"
data-token="txn_c67d10af26d583f18a804c2aaa597eaa"
data-additional-fields=""
data-customer-email=""
data-target="accepton-form">
</script>
</div>
</td>
</tr>
<tr>
<td colspan="2"><hr/></td>
</tr>
<tr>
<td align="right"><input type="button" value="Previous" class="tab-nav" data-step='step2'></td>
<td>
<input value="Submit" name="Submit" id="Submit" type="button">
<!-- <input type="submit" value="Submit" name="Submit" id="Submit" /> -->
</td>
</tr>
</table>
</div>
</form>
<p>Please see our <a target="_blank" href="/privacy_policy.php">Policies Page</a> for more information.</p>
</td>
</tr>
</tbody>
</table>
</td>
<td><img alt="" border="0" height="190" src="images/site/spacer.gif" width="1" /></td>
</tr>
<tr>
<td><img alt="" border="0" height="254" src="images/site/spacer.gif" width="1" /></td>
</tr>
<?php include 'footer.php'; ?>
<div class="pop-up-me1 display-none">
<a class="close" href="/">Close</a>
</div>
<script src="assets/jquery.signaturepad.min.js"></script>
<script>
$(document).ready(function () {
setTimeout( function() {
$('#accepton-form-75').addClass('display-none');
$('.pop-up-me').addClass('messagepop').addClass('pop').removeClass('pop-up-me');
}, 5000);
$('.step2-active').on('click', function() {
$.ajax({
url: '/save_signature.php',
type: 'POST',
dataType: 'json',
data: $('#form1').serialize(),
success: function (data) {
form$.get(0).submit();
}
});
});
$('input[name=application_type]').on('click', function() {
if($(this).is(':checked')){
$('.accepton-form-common').addClass('display-none');
$('#accepton-form-'+$(this).val()).removeClass('display-none');
}
});
$('.sigPad').signaturePad({drawOnly: true});
$('.tab-nav').click(function () {
if ($('input[name=name]').val() == '') {
$('input[name=name]').focus();
$('input[name=name]').addClass('has-error');
alert('Please enter name.');
return false;
} else {
$('input[name=name]').removeClass('has-error');
}
if ($(this).attr('data-step') == 'step3') {
if ($('input[name=contact_email]').val() == '' || $('input[name=contact_email]').val().indexOf('@') == -1) {
$('input[name=contact_email]').focus();
$('input[name=contact_email]').addClass('has-error');
alert('Please enter valid email.');
return false;
} else {
$('input[name=contact_email]').removeClass('has-error');
}
}
$('.steps').removeClass('display-none');
$('.steps').addClass('display-none');
step = $(this).attr('data-step');
$('.' + step).removeClass('display-none')
})
});
$('.save-signature').click(function () {
$.ajax({
url: '/save_signature.php',
type: 'POST',
dataType: 'json',
data: $('#form1').serialize(),
success: function (data) {
form$.get(0).submit();
}
});
});
$(function () {
$("#requested_date").datepicker();
$('#significant_birthdate').datepicker();
$('#birthdate').datepicker();
$("#expiration_date").datepicker();
$("#expiration_date").datepicker("option", "dateFormat", 'mmyy');
$('#total_amount').val('$' + $('#application_type').val());
$('input[name=application_type]').on('change', function () {
$('#total_amount').html('$' + $(this).val());
})
});
function deselect(e) {
$('.pop').slideFadeToggle(function() {
e.removeClass('selected');
});
}
$(function() {
$('.step2-active').on('click', function() {
if($(this).hasClass('selected')) {
deselect($(this));
} else {
$(this).addClass('selected');
$('.pop').slideFadeToggle();
}
return false;
});
$('.close').on('click', function() {
deselect($('.step2-active'));
return false;
});
});
$.fn.slideFadeToggle = function(easing, callback) {
return this.animate({ opacity: 'toggle', height: 'toggle' }, 'fast', easing, callback);
};
</script>
<script src="assets/json2.min.js"></script>