我如何做到这一点,以便当用户单击表单代码上的“注册”按钮时,转到条带代码/按钮。而且,一旦他们完成了这些,他们就会继续填写注册表单。
条码:
<div id="container">
<?php
require_once('../stripe/lib/Stripe.php');
$stripe = array(
'secret_key' => 'secretkey',
'publishable_key' => 'publickey'
);
Stripe::setApiKey($stripe['secret_key']);
<form action="index.php" method="post">
<script src="https://button.stripe.com/v1/button.js" class="stripe-button"
data-key="<?php echo $stripe['publishable_key']; ?>"
data-amount=53500
data-description="One Wilde quote"
data-label="Buy"></script>
</form>
<?php
}
?>
</div><!-- #container -->
表格代码:
<div class="container">
<form class="form-signin" accept-charset="UTF-8" action="" method="post">
<legend class="form-signin-heading">Register</legend>
<input class="form-control" name="first_name" placeholder="First Name" type="text">
<br>
<input class="form-control" name="last_name" placeholder="Last Name" type="text">
<br>
<input class="form-control" name="email" placeholder="Email" type="text">
<br>
<input class="form-control" name="username" placeholder="Username" type="text">
<br>
<input class="form-control" name="password" placeholder="Password" type="password">
<br>
<input class="form-control" name="password" placeholder="Password Again" type="password">
<br>
<label><input type="checkbox" name="terms" checked="checked" onclick="return false;"> I agree with the <a href="#">Terms and Conditions</a>.</label>
<button class="btn btn-primary" type="submit">Sign up</button>
</form>
</div>