Ping a Web page by Ajax and PHP, using the POST method

Demo using Ajax to run on the server the pingurl.php script with for parameter the URL of a Web page.
The script checks that the URL is a valid link.

The POST command allows to pass parameters to the PHP script.

The answer of the script will be assigned to responseText, which will be shown below.


The answer will come here


(c) By xul.fr

Retourn to the Ajax and PHP Tutorial