Noel,
Thank you for your response! I have built a rather large form on your plugin visible here but I have a few questions if you wouldn’t mind helping me!
I am saving all the fields that are not in blue in a separate database (not wordpress). But when I use form action=”insert.php” to inject the data into the database, the sale does not go through. Thus I can either have the sale go through, or have no database entry. Do you know a way to get both to work simultaneously?
Here is my insert.php code for reference:
<?php
$con = mysql_connect("localhost","HIDDEN","HIDDEN");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("HIDDEN", $con);
$sql="INSERT INTO jimmy_tb (first_name, last_name, address_1, address_2, city, state, postal_code, phone, email, golfdinner, dinneronly, sponsorhole, donation, comment, totalpaid, foursome_1, foursome_2, foursome_3)
VALUES
('$_POST[wp_stripe_name]','$_POST[wp_stripe_lastname]','$_POST[wp_stripe_address_1]','$_POST[wp_stripe_address_2]','$_POST[wp_stripe_city]','$_POST[wp_stripe_state]','$_POST[wp_stripe_zip]','$_POST[wp_stripe_phone]','$_POST[wp_stripe_email]','$_POST[PROD_GODIN_275]','$_POST[PROD_DIN_100]','$_POST[PROD_SPONSOR_100]','$_POST[PROD_DONATION_1]','$_POST[wp_stripe_comment]','$_POST[wp_stripe_amount]','$_POST[wp_stripe_foursome_1]','$_POST[wp_stripe_foursome_2]','$_POST[wp_stripe_foursome_3]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Form successfully submitted!";
mysql_close($con)
?>
<meta http-equiv="refresh" content="2;url=http://www.tomanow.com/jimmystraine/?page_id=31">
Best,
Tom