如何使<a> link </a>標簽與提交按鈕一起使用?
現在用表格發送資料,但我還需要<a> link </a>鏈接才能作業
我的代碼只適用于提交按鈕
<form method="POST" action="{{ route('enviado') }}">
@csrf
<input type="hidden" name="id" value="{{$hoy->id}}">
<a href="https://api.whatsapp.com/send" target="_blank"> <button type="submit">Send</button></a>
</form>
請幫助
uj5u.com熱心網友回復:
也許您可以嘗試洗掉<a>標簽并在您的<form>標簽上使用它
<form method="POST" action="{{ route('enviado') }}" onsubmit="window.open('https://api.whatsapp.com/send', '_blank');">
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/389295.html
