A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
How to create an AJAX contact form
This tutorial shows users how to create an AJAX contact form. The form method in this tutorial is set to POST.
On Wednesday, May 3rd 2006 at 03:30 PM
By Nabeel Akhtar (View Profile)
(Rated 3.9 with 15 votes)
view the AJAX Contact Form in action.
The AJAX Contact Form uses the POST method to transfer the data from the form to the PHP file. From thereon you can store the data in variables using "$_POST". This is also illustrated in the code.
There are two pages that you will need. The first page will show the form to the user when the user first visits the page. We will call this page "Form.php". The other page will process the data from the first page and will return a confirmation message. You can use PHP or any other language to do anything you want. We are going to call the second page "Process.php".
To get started, first create a form:
There are two <span> sections defined in this page. The first one is highlighted in orange in the above image and the second span is the table that holds the input fields.
The status span will display the status of the form while it is being processed. Once all the information has been processed, the status will read "Ready".
Following is the code for the Form.php file:
Following is the code for the "Process.php" file:
More Tutorials at NabeelAkhtar.NET
|Digg It! Del.icio.us Reddit StumbleIt Newsvine Furl BlinkList|
Rate this tutorial
There are no related tutorials.
Related Source Code
There is no related source code.
PHP Job Search
From the creators of Geekpedia, a revolutionary new coupon website!
BargainEZ has coupons codes, printable coupons, bargains and it is the leading source of Passbook coupons for iPhone and iPod touch devices.