1

The following sends values entered through a form to a php file:

$.ajax ({
    url: myPhpUrl,
    data: formValues,
    type: "POST",
    async:false,
    success: function (data, textStatus)
    {     
        alert("Form sent successfully");           
    },
    complete: function () {
        location.reload(true);
    }
});

Once the success function has alerted a success message, the complete function will reload the page.

I need to know from my PHP file that the page has been reloaded.

Is there any way to send a parameter from the complete function to my PHP file? If not, any other approach to do so?

4

1 に答える 1

0

私が使う

location.href=location.href+'?param='+my_param_value;
于 2012-06-26T15:18:47.323 に答える