ajax and multiple check boxes
how to di开发者_StackOverflow中文版splay multiple checkboxes value in ajax language?
AJAX is a not a language, its more of a technique used on the client-side to create interactive applications on your webpage by using a group of languages such as JavaScript and PHP.
To display the values you can use HTML and JavaScript, look at Finding the value of an HTML form checkbox or with PHP, HTML and JavaScript at PHP Example AJAX and MySQL
I would suggest you to have a look at PHP Ajax tutorial :)
There are quite some ways you can create checkboxes:
With PHP:
echo '<input type="checkbox" name="whatever" />';
// and son on
With Ajax Script:
You could simply ajax response which contains raw html of checkboxes.
With Javascript:
var chk = document.createElement("input");
chk.setAttribute("type", "checkbox");
var frm = document.forms[0];
frm.appendChild(chk);
// and on on........
But all of those things seem to be new to you, you should first read PHP Ajax tutorial.
精彩评论