In this Ajax tutorial you will learn how to process more than one form item. Ajax is very fast and can retrieve data in a split second. In the last ajax tutorial we showed you how to process one form item. Usually when you need a form on a web page you need to process more than one item. The key ingredient is the way you set the variables in the script.
How to Add More Than One Variable To Ajax *
When setting the variables that will be taken over to the processing page you need to makes use of the equals sign(=) and ampersand (&). The variables in the script will look something like this.
- var emm = document.getElementById(“email”).value;
- var name1 = document.getElementById(“name”).value;
- var vars = “email=”+emm+”&namee=“+name1;
Please like, share and subscribe.
I hope you enjoyed the article. If I was able to help you please consider a tip for the content.
One Time Tip