i have a custom script in app/library/custom.php...and i need to submit a form to this script via a post request, wondering how to do this in a laravel view - here is the form within the view
<form class="jv-login-div" action="create_payment.php" method="post">
<label for="jv-checkout-amount">Total Amount</label>
<input type="text" id="jv-checkout-amount" name="amount" class="form-control₦ </h5>
<br/>
<label for="jv-checkout-email">Email Address</label>
<input type="text" id="jv-checkout-email" name="email" class="form-control hidden" value="">
<h5></h5>
<br/>
@if($address)
<label for="jv-checkout-address">Delivery Address</label>
<input type="text" id="jv-checkout-address" name="address" class="form-control hidden" value="">
<br/>
<h5></h5>
<br/>
<input type="checkbox" name="delivery" value="delivery"> Pay On Delivery<br>
<button class="btn jv-btn pull-right" type="submit" role="button">continue</button>
</form>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire