Question subject: Sending a post request using AJAX
Posted: Mon Aug 06, 2007 11:05 am
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2103 Location: Earth Has thanked: 39 time Have thanks: 56 time
hi all , This application is an simple example of how you can send a POST request to an dynamic web page.Here is used php file .You can take the name of the user .Send it to the php file as a paramter and in the php file you can make the proccessing you want on it .Here i just make a echo call in the php file .In the Ajax file (html) you can take the response of your request and show it on the browser.
Here is the HTML file for the Ajax :
Code:
<html > <script type="text/javascript"> function doAjaxPost(myform) {
var message="myname="+myform.elements["myname"].value; var url="ajaxform.php"; var request=null;