answersLogoWhite

0

This can be done using AJAX calls, so it wouldn't strictly be with PHP. You would need to add some Javascript that handles the update events if the form fields that you want to watch. That Javascript would send a request back to the server and update accordingly with the result.

From a PHP point of view, I find it easiest to make the Javascript send a paramater in the URL specifying what it wants. You could then handle it with something like this:

if(array_key_exists('action', $_POST){

switch($_POST['action']){

case 'foo': echo 'bar'; break;

case 'hanky': echo 'panky'; break;

default: echo 'boo';

}

exit();

}

// the rest of the document here

If you're just getting started with AJAX queries, you would be best off using a commonly available library for it. I personally recommend jQuery, but there are other ones out there.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Why were roman laws written and disolayed?

Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.Roman laws were written and displayed so everyone could know what they were. By being written, they became specific. By being displayed, everyone had a chance to read them and they became applicable to everyone.


What is posted on a specific date mean?

It was uploaded on the site at that time. It was displayed on the day shown.


In a table the specific field names are displayed at?

At the top of each column of each table.


A message displayed on a screen to inform the user that the computer is awaiting a specific response is known as a what?

It is a prompt.


What is the data displayed in a cell?

The data displayed in a cell refers to the information or value that is entered or calculated within that specific cell in a spreadsheet or table. This data can include numbers, text, dates, formulas, or other types of information relevant to the context of the spreadsheet.


What are two possibilities for a specific trait?

Allele The specific trait may be either in homozygous or heterozygous condition. The expression of the trait depends on its dominant or recessive condition.


Where does hyphen go in medical condition specific?

In the term "medical condition-specific," the hyphen is placed between "condition" and "specific" to form a compound adjective. This indicates that the specificity pertains to the type of medical condition being discussed. Thus, it clarifies that the adjective modifies the noun it precedes.


. Which medical technology from the Chinese Han Dynasty involves inserting needles into specific parts of the body in order to cure disease or pain?

Acupuncture.


What are frames in Adobe Flash?

The frames are the signal images within the animation,. The frames are displayed in a specific sequence at the specific speed to create the illusion of the animation moving.


Which medical technology from the Chinese Han Dynasty involves inserting needles into specific parts of your body in order to cure disease or pain?

Acupuncture.


Why is art work temporarily displayed?

Artworks are often temporarily displayed to create a dynamic viewing experience, allowing different pieces to be showcased over time and keeping exhibitions fresh and engaging for audiences. Temporary displays can also highlight specific themes, artists, or movements, encouraging exploration and dialogue. Additionally, rotating exhibitions help protect artworks from prolonged exposure to light and environmental factors, preserving their condition for future generations.


What gifts of the holy spirit did saint Andrew have?

All of them just like everybody else try to be more specific and ask how he displayed them.