0
我想知道如何使形式「提交」也是一個echo("<a href='.signalservice/subscription.php?customer_id=" . $result->customer->id . "'>Create subscription for this customer</a>");
PHP回聲形式提交
我的代碼是:
if ($result->success) {
echo '
<form action="//tradeitsimple.us3.list-manage.com/subscribe/post?u=fc50a4fa89bccc3ad26bb4c71&id=b9d9e2fe10" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<label for="mce-EMAIL">You will receive signals through email, please leave your email address!</label>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
';
echo("Success! Customer ID: " . $result->customer->id . "<br/>");
echo("<a href='.signalservice/subscription.php?customer_id=" . $result->customer->id . "'>Create subscription for this customer</a>");
} else {
echo("Validation errors:<br/>");
foreach (($result->errors->deepAll()) as $error) {
echo("- " . $error->message . "<br/>");
}
}
?>