ampstart icon indicating copy to clipboard operation
ampstart copied to clipboard

Make it more clear how to submit feedback

Open ericlindley-g opened this issue 8 years ago • 2 comments

Current pain point: It's not clear for users unfamiliar with GitHub how to make feature requests or ask questions (the Github link leads to the front page for the AMP Start repo; the Slack link directs you to a Google form)

Strawman proposal: From the GitHub module on the ampstart.com home page, add a direct link to make a feature request (inline link for the text "request a feature")

@spacedino @camelburrito WDYT?

ericlindley-g avatar Oct 16 '17 23:10 ericlindley-g

Adding to this, Stackoverflow requires karma, so many of us are unable to post for help. We'd like to see some examples of forms and how to make them actually work. There are plenty of examples of HMTL forms, but there is nothing about action-xhr and possible PHP or other endpoints to work with. Nothing for regular forms works with AMP that I've tried. And I am trying, but what you have going on here is nothing for beginners, all for developers. It'd take one of you wizards about 5 mins to post something that thousands of us could use to successfully submit AMP forms.

88kbbq avatar Dec 03 '17 12:12 88kbbq

This doesn't work and I don't know why: <?php $myemail = '[email protected]'; if (!empty($_POST)) { header("access-control-allow-credentials:true"); header("access-control-allow-headers:Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token"); header("access-control-allow-methods:POST, GET, OPTIONS"); header("access-control-allow-origin:".$_SERVER['HTTP_ORIGIN']); header("access-control-expose-headers:AMP-Access-Control-Allow-Source-Origin"); header("amp-access-control-allow-source-origin:https://".$_SERVER['HTTP_HOST']); header("Content-Type: application/json"); $name = $_POST['name']; $email_address = $_POST['email']; $message = $_POST['message']; header("Content-Type: application/json"); $email_subject = "Contact form submission: $name"; $email_body = "You have received a new message. ". " Here are the details:\n Name: $name \n Email: $email_address \n Message \n $message"; $headers = "From: $myemail\n"; $headers .= "Reply-To: $email_address"; mail($to,$email_subject,$email_body,$headers); header('Location: thank-you.html'); } ?>

I get valid AMP but see "Failed to parse response JSON: SyntaxError: Unexpected token < in JSON at position 14​​​"

88kbbq avatar Dec 03 '17 12:12 88kbbq