I have a form that will collect input from the user and it consist of a button. Once a user click on the button, a pop up message will be shown.
I would like to post the form inputs to the url stated in the javascript.
<div class="live-preview">
<a class="confirm" id="alert">
<input type="submit" name="submit" class="btn btn-common uppercase" value="Edit Booking">
</a>
<script>
$(".confirm").easyedit();
$("#alert").click(function() {
window.location = "processEditBookSeat.php";
});
</script>
<input name="workshopSeatLeft" type="hidden" id="workshopSeatLeft" value="<?php echo $resultWorkshopDetail['workshopDetailSeatLeft']?>">
<input name="alreadyBookedSeat" type="hidden" id="alreadyBookedSeat" value="<?php echo $userBookedSeat?>">
<input name="workshopID" type="hidden" id="workshopID" value="<?php echo $getWorkshopID?>">
</div>
processEditBookSeat.php?workshopID=1234&alreadyBookedSeat=false&workshopSeatLeft=true?