|
|
Registered tutorials: 501 Registered Users: 33128
|
|
Rating: 3.75 out of 16 votes cast
Category: Ajax and PHP
|
How To Create Form Posts with Ajax
Abstract: In this article you'll learn how to create a reusable Ajax process which can be used with all forms. The source code for this article and a live preview are available for download.
Starting With a Standard Web Form A standard form includes a set of form tags with custom form fields, such as a name, city, state and so on. In order to successfully submit a form these form elements must have a unique name, so we can retrieve the value with a server-side language when the form is submitted. How we gather this information on the server-side is based on the method in which the form is sent, either a get or a post. Where we send it to is based on the action defined in the opening form tag and if it's left empty the page submits to itself. Listing 1 shows a standard Web form that submits to itself, uses the post method and sends a name and a message to the server on submission.
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
3380 |
| Unique Hits: |
2671 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
7.4 |
9.4 |
46.7 |
62.4 |
93.7 |
122 |
| Current |
2 |
3 |
2 |
3 |
2 |
3 |
| Previous |
11 |
14 |
65 |
83 |
430 |
572 |
| Nov 29 |
2 |
3 |
84 |
107 |
101 |
130 |
| Nov 28 |
10 |
14 |
0 |
0 |
31 |
46 |
| Nov 27 |
10 |
13 |
85 |
108 |
38 |
40 |
| Nov 26 |
7 |
8 |
0 |
0 |
145 |
184 |
| Nov 25 |
13 |
17 |
154 |
221 |
32 |
43 |
| Nov 24 |
0 |
0 |
0 |
0 |
0 |
0 |
| Nov 23 |
12 |
14 |
55 |
70 |
33 |
38 |
| Nov 22 |
7 |
8 |
22 |
32 |
125 |
164 |
| Highest |
53 |
66 |
229 |
279 |
818 |
1019 |
|
|
|
Script Execution Time: 5.01057 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|