I need help here.
My jQuery code does not return the submit button name in the $_POST Array…
This is my code:
<script type="text/javascript">
$(document).ready(function(){
$('#submForm').validate({
submitHandler: function(form) {
// Do cleanup first
form.submit();
}
})
});
</script>
<input type="submit" class="paypal_bttn" value="premium" name="bttn">
In the $_POST array I can see everything except the button name, that I am really in need to know…
Please help.
Thanks
you are not submitting or validating the form
on button click, since you have wrapped your code inside thereadyhandler as soon as the DOM is ready you form is validated and then submittedwhat you can do is