0
フォームAmpテンプレートを使用した提出が機能していないため、PHPを使用してアンプフォームからデータを送信することはできません。それを修正するには? マイページ:http://samiakhalil.com/theinfotime/amp/register1.phpデータベースへのAMPフォーム提出
<?php
if (isset($_POST['register'])) {
$name = $_POST['name'];
$email = $_POST['email'];
echo $name;
}
?>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<form method="post"
action-xhr="https://ampbyexample.com/components/amp-form/submit-form-input-text-xhr"
target="_top">
<input type="text" class="data-input" name="name" placeholder="Name" required>
<input type="email" class="data-input" name="email" placeholder="Email" required>
<input type="submit" value="Register" name="register" class="button button-primary">
</form>
知らない、空です。 – tadman
私のページにアクセスしてください:http://samiakhalil.com/theinfotime/amp/register1.php – samia
[AMPフォームの投稿と提出する可能性のある複製](http://stackoverflow.com/questions/41346187/amp-form-submitting) -with-post) – yivi