'First Name', 'last_name' => 'Last Name', 'address1' => 'Address (line 1)', 'city' => 'City', 'state' => 'State', 'zip' => 'Zip', 'amount' => 'Donation Amount' ); if ($_POST['submit']) { $err_msg = array(); $_POST['amount'] = preg_replace('/[^0-9.]/', '', $_POST['amount']); foreach ($required_fields as $key => $name) { if (!$_POST[$key] || $_POST[$key] == '') { array_push($err_msg, "Please fill in some information for '$name'."); }; }; if (!is_numeric($_POST['amount'])) { array_push($err_msg, "Please provide a numeric dollar amount for your donation."); }; if (!$err_msg) { $amt_due = $_POST['amount']; $q = 'INSERT INTO reg_donation (amount_due) VALUES (' . mysql_real_escape_string($amt_due) . ')'; mysql_query($q) or die("Could not insert donation info. Your card has not been charged.
Error: " . mysql_error()); $reg_donation_id = mysql_insert_id(); $q = 'INSERT INTO reg_transaction ( type, type_id, submitted, amount_due, first_name, last_name, title, address1, address2, city, state, zip, email_submitted ) VALUES ( "donation", ' . $reg_donation_id . ', NOW(), ' . $amt_due . ', "' . mysql_real_escape_string($_POST['first_name']) . '", "' . mysql_real_escape_string($_POST['last_name']) . '", "' . mysql_real_escape_string($_POST['title']) . '", "' . mysql_real_escape_string($_POST['address_1']) . '", "' . mysql_real_escape_string($_POST['address_2']) . '", "' . mysql_real_escape_string($_POST['city']) . '", "' . mysql_real_escape_string($_POST['state']) . '", "' . mysql_real_escape_string($_POST['zip']) . '", "' . mysql_real_escape_string($_POST['email']) . '" )'; mysql_query($q) or die("Could not insert donation info. Your card has not been charged.
Error: " . mysql_error()); $reg_transaction_id = mysql_insert_id(); ?>
0) { ?>

We were unable to complete your registration.

    $msg"; }; ?>

Please correct these problems and try registering again.

Make A Donation

Maryland Council on Economic Education believes that it is every citizen’s right and responsibility to become economically and financially literate. To achieve the goal of economic and financial literacy, the Council works to assure that Maryland’s school children learn the economic and financial knowledge they will need to make thoughtful, informed economic and personal finance decisions as consumer, savers, investors, workers, and citizens.

(I) We would like to support the mission of the Maryland Council of Economic Education with a contribution of: $

*First Name:
*Last Name:
Title:
Company:
*Address 1:
Address 2:
*City:
*State:
*Zip:
Email: