$full_name, 'telephone' => $telephone_dd . '-' . $telephone, 'email' => $email, 'coupon_code' => $coupon_code, 'received_at' => $received_at, 'date_added' => date("Y-m-d H:i:s"), ); $no_rows = count(file("contact_data.csv")); if ($no_rows == 0) { fputcsv($file_open, array('Name', 'Telephone', 'Email', 'Coupon Code', 'Received At')); } fputcsv($file_open, $form_data); $msg = "Data submitted succssfully!"; $full_name = ""; $telephone = ""; $email = ""; $coupon_code = ""; $received_at = ""; $telephone_dd = ""; } catch (Exception $e) { $error = true; $msg = $e->getMessage(); } } ?>
Success! Data submitted succssfully!.
Danger!

Enter to Win

Visit your nearest dealer to shop and get your peel and win ticket