Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8158529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:37:48+00:00 2026-06-06T17:37:48+00:00

The following sends values entered through a form to a php file: $.ajax ({

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:37:50+00:00Added an answer on June 6, 2026 at 5:37 pm

    I use

    location.href=location.href+'?param='+my_param_value;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following Situation, Server A sends some data (HTML form) to server B,
My test.php file contains the following information that is sends list of information. while($row
I have page1.php that uses a form to send the following data: <form action=page2.php
My page sends using ajax data to a php script. one of the vars
I send the text file to multiple devices using the following code, ContentValues values
I should communicate with an online service that sends me the following data urlencoded:
I am using the following Ajax code on a PHP page to check to
I have a service which sends continously values to an activity through some custom
I am using the following call to send data back to the server: $.ajax({
The following code sends me an email holding the following variables. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.