I’m using the $.post method to post a value through to a PHP page for processing after using serialize and I replaced the serialize utility with a more specific element:
$("button").click(function(event) {
$.post(
"php/index.php",
{ seq: $("seq").val(); },
function(data, status) {
$('.stage').html(data);
}
);
});
However the data doesn’t get sent and it appears in the URLlike this:
xxx.co.uk/?seq=123456
Very similar to a get method. How can I adjust this to send it to a PHP page with the value from the form element and to receive it as:
$_POST['seq'];
Help would be very much appreciated.
Try this: