i'm doing submit form in laravel but when i click button with type=submit, it's not work. here is my form in View:
<form action="" method="POST" role="form" id="activate-user">
........
<button class="btn btn-primary" type="submit" form="activate-user">
Okay, I'm done
</button>
</form>
and here is my Route to access:
Route::post('p/activation/{slug}','Frontend\PetitionController@storeActivation')->name('petitions.storeActivation');
i do not redirect to another page when i submitted. Anyone help me!!!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire