Skip to content

Instantly share code, notes, and snippets.

View Burrer's full-sized avatar

Ryan Burrer Burrer

View GitHub Profile
@Burrer
Burrer / Form.css
Last active May 25, 2023 05:28
Contact Form: Using SendGrid WebAPI and cURL PHP
/* Form.html CSS, just copy and paste any where in your style.css file, or customize to fit with your domain */
form.contact p {
font-size: 15px;
padding: 0 0 15px 0;
margin: 0;
}
form.contact input, form.contact textarea {
font-family: Arial;
font-size: 15px;
@Burrer
Burrer / contact_api.php
Last active December 27, 2018 09:32
Subscription Widget: SG MC
<?php
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email = $_POST['email'];
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.sendgrid.com/v3/contactdb/recipients",