<?php
/**
* Example file
*/
$paramNames = array('name', 'email', 'phone');
$paramValues = array('Rochak Chauhan', 'rochakchauhan@gmail.com', '100');
require_once('ajax.inc.php');
$ajax = new Ajax('displayResponse');
/*
// without parametes
$ajax->sendRequest('serverfile.php');
*/
$ajax->sendRequest('serverfile.php', $paramNames, $paramValues);
?>
<span id="displayResponse">No response...</span>
|