Submitting my form to the database and then redirecting to payment site

Good afternoon, I managed to sort this out. I have amended my functions.php to the following. function mcPaySubmit(){ global $wpdb; include(‘paygate.php’); $last = wp_get_recent_posts(array(‘numberposts’ => ‘1’, ‘post_type’ => ‘post’, ‘post_status’ => ‘pending’, ‘author’ => $user_id)); $purchase_post_id = $last[‘0’][‘ID’]; $purchase_days = $_POST[‘dext’]; $purchase_date = $_POST[‘mcTransactionDate’]; $purchase_amount = $_POST[‘totalDue’]; if($wpdb->insert(‘ac_purchases’, array( ‘purchase_post_id’ => $purchase_post_id, ‘purchase_days’ => $purchase_days, … Read more

Form not working as it should in WordPress, but in a normal HTML site it does

So I finally found the solution to the problem. It was in the validate.js function. I corrected the error by calling the outside functions of validate.js and jquerry: script type=”text/javascript” src=”http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js” script type=”text/javascript” src=”http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js”